:root {
  --bg: #f7f6f2; --card: #ffffff; --ink: #1c1b19; --muted: #6b6a64;
  --accent: #c4552d; --accent-ink: #ffffff; --line: #e3e1da; --radius: 14px; --ok: #3c7a4a; --star: #cf8b00;
}
:root[data-theme="dark"] {
  --bg: #141413; --card: #1e1e1c; --ink: #efeee9; --muted: #9c9b94;
  --accent: #e0714a; --accent-ink: #141413; --line: #34332f; --ok: #6fbf84; --star: #f2b84b;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
header, main, .intro { max-width: 820px; margin: 0 auto; padding: 0 16px; }
header { min-height: 64px; padding-top: 16px; padding-bottom: 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
/* Wordmark: όνομα έντονο + «.app» αχνό, ακριβώς όπως στην αρχική του sextos.app. */
.wm { min-width: 0; color: var(--ink); font-size: clamp(1.25rem, 5.6vw, 1.6rem); font-weight: 700; letter-spacing: -0.03em; text-decoration: none; }
.wm span, .intro h1 span { color: var(--muted); font-weight: 500; }
body:not(.no-hero) .wm { display: none; }
.intro { padding-top: clamp(24px, 6vh, 64px); padding-bottom: 28px; }
.intro h1 { margin: 0 0 12px; font-size: clamp(2.4rem, 10vw, 4rem); line-height: 1.05; letter-spacing: -0.03em; }
.lead { margin: 0; max-width: 34em; color: var(--muted); font-size: 1.1rem; }
body.no-hero .intro { display: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 16px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--card); color: var(--ink); font: inherit; font-weight: 500; text-decoration: none; }
.btn:hover { border-color: var(--muted); }
.tools { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.homebtn { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); color: var(--ink); font-size: .85rem; font-weight: 600; text-decoration: none; }
.homebtn:hover { border-color: var(--accent); }
.cartlink { position: relative; text-decoration: none; font-size: 1.35rem; line-height: 1; padding: 4px; }
.badge { position: absolute; top: -6px; right: -8px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-size: .72rem; font-weight: 700; line-height: 18px; text-align: center; }
.badge[hidden] { display: none; }
.theme { width: 44px; height: 26px; border-radius: 999px; border: 1px solid var(--line); background: var(--card);
  position: relative; padding: 0; flex: none; }
.theme::after { content: "☀️"; position: absolute; top: 1px; left: 2px; width: 22px; height: 22px; font-size: 14px;
  line-height: 22px; text-align: center; border-radius: 50%; background: var(--line); transition: transform .2s; }
:root[data-theme="dark"] .theme::after { content: "🌙"; transform: translateX(18px); }
a { color: var(--accent); }
button, select { font: inherit; cursor: pointer; }
:is(a, button, input, select):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h2[tabindex="-1"]:focus { outline: none; }

/* ---------- Λίστα ---------- */
.search { display: block; width: 100%; margin: 14px 0 8px; padding: 12px 14px; font: inherit;
  border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); }
.listbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 10px; }
.sort { padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); font-size: .85rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); }
.chip.cat { font-weight: 600; }
.chip.more { border-style: dashed; color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.count { margin: 0; color: var(--muted); font-size: .85rem; }

.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); padding-bottom: 40px; }
.card { position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--card);
  border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); }
.card { transition: transform .15s, border-color .15s; }
.card:hover, .card:focus-within { border-color: var(--accent); transform: translateY(-2px); }
.card-link { display: flex; flex: 1; flex-direction: column; color: inherit; text-decoration: none; }
.card-body { display: flex; flex: 1; flex-direction: column; padding: 22px; }
.card-img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--line); }
.card h2 { display: flex; gap: .4em; margin: 0 0 6px; padding-right: 36px; font-size: 1.2rem; }
.card h2 .emo { flex: none; }
.card.noimg .fav { top: 19px; right: 14px; } /* ίδιο ύψος με την πρώτη γραμμή του τίτλου */
.card p { margin: 0 0 16px; color: var(--muted); font-size: .95rem; }
.card .meta { margin-top: auto; color: var(--accent); font-weight: 600; }
.meta { color: var(--muted); font-size: .85rem; }
.empty { color: var(--muted); padding: 24px 0; }
.fav { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; padding: 0; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card); color: var(--muted); font-size: 1.15rem; line-height: 1; }
.fav[aria-pressed="true"] { color: var(--star); border-color: var(--star); }

/* ---------- Συνταγή ---------- */
.back { margin: 8px 0 4px; }
.hero { display: block; width: 100%; max-height: 320px; object-fit: cover; border-radius: var(--radius); margin: 8px 0 12px; }
.titlerow { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.titlerow .fav { position: static; flex: none; margin-top: 4px; }
article h2, main > h2 { font-size: 1.7rem; margin: 6px 0; }
article .meta { margin-bottom: 8px; }
.acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.act { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: .9rem; }
.act[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.ghost { padding: 6px 0; border: 0; background: none; color: var(--muted); font-size: .88rem; text-decoration: underline; }
.ghost[hidden] { display: none; }
.sechead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
h3 { margin: 28px 0 10px; font-size: 1.15rem; }
.sechead h3 { margin-bottom: 0; }
.scale { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.scale button { min-width: 48px; padding: 6px 14px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.scale button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.scale .info { color: var(--muted); font-size: .9rem; }

ul.ing { list-style: none; margin: 12px 0 0; padding: 0; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); }
ul.ing li { border-bottom: 1px solid var(--line); }
ul.ing li:last-child { border-bottom: 0; }
ul.ing label { display: flex; gap: 12px; align-items: baseline; padding: 10px 14px; cursor: pointer; }
ul.ing input { transform: scale(1.25); accent-color: var(--accent); }
ul.ing input:checked + span { text-decoration: line-through; color: var(--muted); }
.qty { font-weight: 600; }
.note { color: var(--muted); font-size: .88rem; }

ol.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; }
ol.steps li { counter-increment: s; position: relative; margin-bottom: 12px; padding: 14px 14px 14px 52px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
ol.steps li::before { content: counter(s); position: absolute; left: 14px; top: 14px; width: 26px; height: 26px;
  border-radius: 50%; background: var(--accent); color: var(--accent-ink); text-align: center;
  line-height: 26px; font-weight: 700; font-size: .9rem; }
.timer { display: inline-block; margin-top: 8px; padding: 5px 12px; border-radius: 8px;
  border: 1px solid var(--accent); background: transparent; color: var(--accent); font-variant-numeric: tabular-nums; }
.timer.running { background: var(--accent); color: var(--accent-ink); }
.timer.done { background: var(--ok); border-color: var(--ok); color: #fff; animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .55; } }

.notes { background: var(--card); border-left: 4px solid var(--accent); border-radius: 8px;
  padding: 4px 16px 4px 20px; margin-bottom: 40px; }

/* ---------- Λίστα αγορών ---------- */
ul.recs { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
ul.recs li { display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
ul.recs li a { flex: 1; min-width: 0; }
ul.recs .mult { min-width: 2.2em; text-align: center; font-variant-numeric: tabular-nums; }
.sq { width: 34px; height: 34px; padding: 0; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.shopbar { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 14px 0 40px; }

/* ---------- Ειδοποίηση ---------- */
.toast { position: fixed; left: 50%; bottom: 20px; z-index: 10; max-width: calc(100% - 32px); padding: 10px 16px;
  border-radius: 10px; background: var(--ink); color: var(--bg); font-size: .92rem;
  opacity: 0; transform: translate(-50%, 20px); pointer-events: none; transition: opacity .25s, transform .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.sr-copy { position: fixed; top: 0; left: 0; opacity: 0; pointer-events: none; }
.noscript { padding: 24px 16px; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .timer.done { animation: none; }
  .theme::after, .toast, .card { transition: none; }
  .card:hover, .card:focus-within { transform: none; }
}

/* ---------- Εκτύπωση ---------- */
@media print {
  :root, :root[data-theme="dark"] { --bg: #fff; --card: #fff; --ink: #000; --muted: #444; --line: #aaa; --accent: #000; --accent-ink: #fff; }
  header, .intro, .back, .acts, .scale button, .timer, .fav, .ghost, .toast, .hero { display: none !important; }
  body { font-size: 12pt; }
  a { color: inherit; text-decoration: none; }
  ul.ing, ol.steps li, .notes { break-inside: avoid; }
  ol.steps li::before { background: none; color: #000; border: 1px solid #000; line-height: 24px; }
}
