/* Find My Dupe — clean modern theme, responsive, no build step */
:root {
  --bg: #faf9f7;
  --surface: #ffffff;
  --ink: #1c1a17;
  --muted: #6f6a61;
  --line: #e9e4da;
  --accent: #e4572e;
  --accent-dark: #c7431f;
  --green: #1f7a4d;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(28, 26, 23, 0.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
}
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }

/* header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-weight: 800; font-size: 1.25rem; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo-mark { color: var(--accent); font-size: 1.4rem; }
.site-nav { display: flex; gap: 12px; align-items: center; }
.nav-link { background: none; border: 0; font: inherit; cursor: pointer; color: var(--ink); text-decoration: none; padding: 8px 10px; border-radius: 8px; }
.nav-link:hover { background: #f1ece2; }
.pill { background: var(--accent); color: #fff; border-radius: 999px; padding: 1px 8px; font-size: 0.75rem; font-weight: 700; }

/* hero */
.hero { background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); padding: 56px 0 36px; text-align: center; border-bottom: 1px solid var(--line); }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 10px; letter-spacing: -0.02em; }
.accent { color: var(--accent); }
.lede { color: var(--muted); font-size: 1.1rem; max-width: 620px; margin: 0 auto 24px; }
.searchbar { display: flex; gap: 10px; max-width: 640px; margin: 0 auto 18px; }
.searchbar input {
  flex: 1; padding: 15px 18px; font-size: 1rem; border: 2px solid var(--line);
  border-radius: 999px; background: #fff; outline: none;
}
.searchbar input:focus { border-color: var(--accent); }
.btn { font: inherit; font-weight: 700; border: 0; border-radius: 999px; padding: 13px 26px; cursor: pointer; text-decoration: none; display: inline-block; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); padding: 9px 18px; }
.btn-ghost:hover { color: var(--ink); border-color: var(--muted); }
.btn-block { display: block; text-align: center; width: 100%; margin-top: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 16px; font: inherit; font-size: 0.9rem; cursor: pointer; text-transform: capitalize; }
.chip:hover { border-color: var(--accent); color: var(--accent); }

/* sections & cards */
.section-head { margin: 36px 0 18px; }
.section-head h2 { margin: 0 0 4px; font-size: 1.5rem; }
.section-head p { margin: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; padding-bottom: 12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; position: relative; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.card.clickable { cursor: pointer; }
.card.clickable:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card.clickable:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.card.best { border: 2px solid var(--green); box-shadow: var(--shadow); }
.best-badge { position: absolute; top: 10px; left: 10px; z-index: 2; background: var(--green); color: #fff; font-size: 0.75rem; font-weight: 800; padding: 5px 12px; border-radius: 999px; }
.card-img { aspect-ratio: 4 / 3; background: #f1ece2; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-ph { font-size: 3rem; color: #cfc6b4; }
.card-body { padding: 16px; }
.card-body h3 { margin: 6px 0 8px; font-size: 1.05rem; }
.card-body h2 { margin: 6px 0 8px; }
.card-cat { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; }
.row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.price { font-weight: 800; font-size: 1.15rem; }
.price.big { font-size: 1.6rem; }
.save-pct { display: inline-block; background: #e5f4ec; color: var(--green); font-weight: 800; border-radius: 8px; padding: 3px 10px; margin-bottom: 2px; }
.save-line { color: var(--muted); font-size: 0.9rem; margin-top: 6px; }
.heart { position: absolute; top: 10px; right: 10px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,0.92); font-size: 1.15rem; color: #b9b2a4; cursor: pointer; line-height: 1; }
.heart.on { color: #e5484d; border-color: #e5484d; }
.heart:hover { transform: scale(1.08); }

/* original card */
.original-card { display: flex; gap: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 18px 0 8px; align-items: center; }
.original-card .card-img { width: 180px; flex: none; border-radius: 10px; }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 18px 0; }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.filters select, .filters input { font: inherit; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; min-width: 140px; }

/* misc */
.empty { text-align: center; color: var(--muted); padding: 40px 20px; }
.empty a { color: var(--accent); }
.banner { background: #fff7e6; border: 1px solid #f0d48a; border-radius: 12px; padding: 14px 18px; margin: 18px auto; }
.banner code { background: #f3ead6; padding: 2px 6px; border-radius: 6px; }
.ad-slot { margin: 30px auto; text-align: center; min-height: 0; }
.site-footer { border-top: 1px solid var(--line); margin-top: 50px; padding: 26px 0 40px; background: var(--surface); }
.disclosure { font-size: 0.9rem; }

/* admin */
.admin-wrap { max-width: 900px; margin: 0 auto; padding: 30px 20px 60px; }
.login-card { max-width: 420px; margin: 60px auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.login-card h1 { margin-top: 0; font-size: 1.4rem; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; font-size: 0.9rem; font-weight: 600; }
.field input, .field select, .field textarea { font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.field textarea { min-height: 110px; font-family: ui-monospace, monospace; font-size: 0.85rem; }
.tabs { display: flex; gap: 8px; margin: 20px 0; flex-wrap: wrap; }
.tab { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 20px; font: inherit; font-weight: 600; cursor: pointer; }
.tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.admin-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; font-size: 0.9rem; }
.admin-table th, .admin-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table th { background: #f5f1e8; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.admin-table img.thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.row-actions { display: flex; gap: 6px; }
.btn-sm { padding: 6px 14px; font-size: 0.85rem; }
.btn-danger { background: #fff; color: #b3261e; border: 1px solid #f0b8b4; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.form-card h3 { margin-top: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.hint { font-size: 0.85rem; color: var(--muted); font-weight: 400; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }

@media (max-width: 640px) {
  .searchbar { flex-direction: column; }
  .searchbar .btn { width: 100%; }
  .original-card { flex-direction: column; align-items: stretch; }
  .original-card .card-img { width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .admin-table th:nth-child(4), .admin-table td:nth-child(4) { display: none; }
}

/* ---- update 001: disclosure, currency, amazon price, legal pages ---- */
.disclosure-banner {
  background: #fff8ec; border: 1px solid #ecd9ac; border-radius: 12px;
  padding: 12px 16px; margin: 14px 0; font-size: 0.9rem; color: #6b5a2e;
}
.currency-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.cur-btn { border: 0; background: transparent; font: inherit; font-size: 0.85rem; font-weight: 700; padding: 8px 14px; cursor: pointer; color: var(--muted); }
.cur-btn.active { background: var(--ink); color: #fff; }
.fx-note { margin: 0 0 6px; }
.check-price {
  display: inline-block; background: #fff3e2; color: #b25e09; font-weight: 800;
  border-radius: 8px; padding: 4px 12px; margin-bottom: 4px; font-size: 0.95rem;
}
.tag { display: inline-block; background: #eef2ff; color: #3b5bdb; font-size: 0.75rem; font-weight: 700; border-radius: 6px; padding: 2px 8px; }
.footer-nav { display: flex; gap: 18px; margin-bottom: 12px; flex-wrap: wrap; }
.footer-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.footer-nav a:hover { color: var(--accent); }

/* legal pages */
.legal { max-width: 780px; margin: 0 auto; padding: 40px 20px 60px; }
.legal h1 { font-size: 2rem; margin: 0 0 6px; letter-spacing: -0.01em; }
.legal h2 { font-size: 1.25rem; margin: 30px 0 8px; }
.legal p, .legal li { color: #3d3a34; }
.legal ul { padding-left: 20px; }
.legal .updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 24px; }
.legal a { color: var(--accent); }

.field.checkbox { flex-direction: row; align-items: flex-start; gap: 10px; cursor: pointer; }
.field.checkbox input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: none; }
