/* Sjekkmat 2026 — Shared styles */
:root {
  --display: 'Bricolage Grotesque', Georgia, serif;
  --body: 'Outfit', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --bg: #fafbfc;
  --surface: #ffffff;
  --surface-2: #f3f5f7;
  --surface-3: #e9ecef;
  --border: #e2e6ea;
  --border-subtle: #edf0f3;
  --ink: #0f1419;
  --ink-2: #3d4852;
  --ink-3: #6b7785;
  --ink-4: #9aa5b1;
  --accent: #2563eb;
  --accent-soft: rgba(37,99,235,0.08);
  --accent-medium: rgba(37,99,235,0.15);
  --red: #dc2626;
  --red-soft: rgba(220,38,38,0.08);
  --red-medium: rgba(220,38,38,0.12);
  --green: #16a34a;
  --green-soft: rgba(22,163,74,0.08);
  --orange: #ea580c;
  --orange-soft: rgba(234,88,12,0.08);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.03);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

/* ─── Nav ────────────────────────────── */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 56px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(12px); background: rgba(255,255,255,0.92);
}
.nav-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.nav-logo-icon {
  width: 28px; height: 28px; background: var(--ink); color: white;
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
}
.nav-logo-text { font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: -0.03em; }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; background: var(--accent); color: white;
  border-radius: 8px; text-decoration: none; font-size: 13px; font-weight: 600;
}
.nav-btn:hover { opacity: 0.9; }
.nav-meta { font-size: 12px; color: var(--ink-4); }
.nav-back { font-size: 13px; color: var(--ink-4); text-decoration: none; font-weight: 500; transition: color 0.15s; }
.nav-back:hover { color: var(--ink); }

/* ─── Beta tag ───────────────────────── */
.beta-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
  font-family: var(--mono);
}

/* ─── Footer ─────────────────────────── */
.footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px; border-top: 1px solid var(--border);
  color: var(--ink-4); font-size: 12px; margin-top: 48px;
}

/* ─── Category Bar ───────────────────── */
.cat-bar {
  display: flex; gap: 8px; padding: 12px 24px;
  overflow-x: auto; border-bottom: 1px solid var(--border);
  background: var(--surface); scrollbar-width: none;
}
.cat-bar::-webkit-scrollbar { display: none; }
.cat-pill {
  flex-shrink: 0; padding: 6px 16px; border-radius: 20px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--ink-2); font-family: var(--body); font-size: 13px;
  font-weight: 500; cursor: pointer; transition: all 0.15s;
  white-space: nowrap; text-decoration: none;
}
.cat-pill:hover { border-color: var(--accent); color: var(--accent); }
.cat-pill.active { background: var(--ink); color: white; border-color: var(--ink); }

/* ─── Shared utilities ───────────────── */
.loading-text { text-align: center; color: var(--ink-4); padding: 40px; }
.empty-state { text-align: center; color: var(--ink-4); padding: 40px 20px; }

@media (max-width: 768px) {
  .nav { padding: 0 16px; }
  .cat-bar { padding: 10px 16px; gap: 6px; }
  .cat-pill { font-size: 12px; padding: 5px 12px; }
  .footer { flex-direction: column; gap: 4px; align-items: center; }
}

/* ─── Nav btn green ──────────────────── */
.nav-btn {
  background: #16a34a;
}
.nav-btn:hover { background: #15803d; }

/* ─── Search results optimized ─── */
.search-item-meta { font-size: 12px; color: var(--ink-4); display: flex; gap: 6px; align-items: center; }
.search-item-price { font-weight: 700; color: var(--green, #16a34a); }
.search-item-chain { font-size: 11px; color: var(--ink-3); }
.search-item-chains { font-size: 11px; color: var(--ink-4); }

/* Logo SVG */
.nav-logo-svg { width: 28px; height: 28px; }

/* Heading font */
h1, h2, h3, .nav-logo-text { font-family: 'Noto Serif', serif; }

/* ─── Cart Badge ─── */
.nav-btn { position: relative; }
.cart-badge { position: absolute; top: -6px; right: -8px; background: #059669; color: white; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }

/* ─── Handleliste CTA ─── */
.handle-cta { max-width: 640px; margin: -10px auto 20px; padding: 0 16px; }
.handle-cta-inner { background: white; border: 1.5px solid #d1fae5; border-radius: 16px; padding: 24px; display: flex; align-items: center; gap: 16px; box-shadow: 0 2px 8px rgba(5,150,105,0.06); transition: transform 0.15s, box-shadow 0.15s; }
.handle-cta-inner:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(5,150,105,0.1); }
.handle-cta-icon { flex-shrink: 0; width: 52px; height: 52px; background: #ecfdf5; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.handle-cta-text { flex: 1; }
.handle-cta-text h3 { font-family: 'Noto Serif', serif; font-size: 16px; font-weight: 700; margin: 0 0 4px; color: #1a1a1a; }
.handle-cta-text p { font-size: 13px; color: #666; margin: 0; line-height: 1.4; }
.handle-cta-btn { flex-shrink: 0; background: #059669; color: white; text-decoration: none; padding: 10px 18px; border-radius: 10px; font-size: 13px; font-weight: 600; transition: background 0.15s; }
.handle-cta-btn:hover { background: #047857; }

@media (max-width: 600px) {
  .handle-cta-inner { flex-direction: column; text-align: center; }
  .handle-cta-btn { width: 100%; text-align: center; }
}

/* ─── Spotlight ─── */
.spotlight-section { max-width: 640px; margin: 0 auto 20px; padding: 0 16px; }
.spotlight-card { display: block; background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%); border-radius: 16px; padding: 20px 24px; text-decoration: none; color: #1a1a1a; transition: transform 0.15s, box-shadow 0.15s; }
.spotlight-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(5,150,105,0.12); }
.spotlight-label { font-size: 12px; font-weight: 600; color: #059669; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; }
.spotlight-body { display: flex; align-items: center; gap: 16px; }
.spotlight-img { width: 64px; height: 64px; object-fit: contain; border-radius: 8px; background: white; padding: 4px; flex-shrink: 0; }
.spotlight-info { flex: 1; }
.spotlight-name { font-family: 'Noto Serif', serif; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.spotlight-prices { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.spotlight-low { font-weight: 700; color: #059669; font-size: 18px; }
.spotlight-arrow { color: #999; }
.spotlight-high { font-weight: 700; color: #dc2626; font-size: 18px; }
.spotlight-desc { font-size: 13px; color: #555; line-height: 1.4; }

/* ─── Featured Grid ─── */
.featured-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.fg-card { background: white; border-radius: 12px; padding: 16px; text-decoration: none; color: #1a1a1a; box-shadow: 0 1px 3px rgba(0,0,0,0.06); transition: transform 0.15s, box-shadow 0.15s; display: flex; flex-direction: column; }
.fg-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.fg-img-wrap { text-align: center; margin-bottom: 10px; height: 64px; display: flex; align-items: center; justify-content: center; }
.fg-img { max-width: 64px; max-height: 64px; object-fit: contain; }
.fg-name { font-size: 13px; font-weight: 600; line-height: 1.3; margin-bottom: 8px; flex: 1; }
.fg-price-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 4px; }
.fg-price { font-size: 20px; font-weight: 700; color: #059669; }
.fg-chain { font-size: 11px; color: #888; background: #f3f4f6; padding: 2px 8px; border-radius: 4px; }
.fg-spread { font-size: 11px; color: #999; }

@media (max-width: 768px) {
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .spotlight-body { flex-direction: column; text-align: center; }
}

/* ─── About ─── */
.about-section { max-width: 640px; margin: 30px auto; padding: 0 16px; text-align: center; }
.about-title { font-family: 'Noto Serif', serif; font-size: 20px; margin-bottom: 10px; }
.about-text { font-size: 14px; color: #666; line-height: 1.6; margin-bottom: 20px; }
.about-features { display: flex; gap: 20px; justify-content: center; }
.about-feature { flex: 1; background: white; border-radius: 12px; padding: 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.about-feature strong { display: block; font-size: 14px; margin-bottom: 4px; color: #059669; }
.about-feature span { font-size: 12px; color: #888; line-height: 1.4; }

@media (max-width: 600px) {
  .about-features { flex-direction: column; }
}

/* ─── Nav z-index fix ─── */
.nav { position: relative; z-index: 100; background: white; }
@media (max-width: 768px) {
}

/* ─── Mobile nav overlay fix ─── */
@media (max-width: 768px) {
}


/* ─── Desktop Category Bar ─── */


/* ─── Nav ─── */
.nav { display: flex; align-items: center; padding: 10px 20px; background: white; gap: 8px; }
.nav-pills { display: flex; gap: 6px; flex: 1; justify-content: center; overflow-x: auto; scrollbar-width: none; }
.nav-pills::-webkit-scrollbar { display: none; }
.nav-pill { white-space: nowrap; font-size: 14px; padding: 6px 16px; border-radius: 20px; border: 1px solid #e5e7eb; text-decoration: none; color: #555; transition: all 0.15s; }
.nav-pill:hover { border-color: #059669; color: #059669; }
.nav-pill.active { background: #1a1a1a; color: white; border-color: #1a1a1a; }
.nav-burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; gap: 4px; }
.nav-burger span { display: block; width: 20px; height: 2px; background: #333; border-radius: 2px; transition: all 0.2s; }
.nav-burger.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }
.nav-cart { position: relative; display: flex; align-items: center; color: #333; text-decoration: none; padding: 8px; border-radius: 10px; transition: background 0.15s; }
.nav-cart:hover { background: #f3f4f6; }
.cart-badge { position: absolute; top: 0; right: 0; background: #059669; color: white; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }

/* ─── Drawer (mobile only) ─── */
.drawer-overlay { display: none; }
.drawer { display: none; }

@media (max-width: 768px) {
  .nav-pills { display: none; }
  .nav-logo { flex: 1; }
  .nav-burger { display: flex; }
  .drawer-overlay { display: block; position: fixed; inset: 0; background: rgba(0,0,0,0); pointer-events: none; z-index: 998; transition: background 0.3s; }
  .drawer-overlay.open { background: rgba(0,0,0,0.3); pointer-events: all; }
  .drawer { display: flex; position: fixed; top: 0; left: 0; bottom: 0; width: 270px; background: white; flex-direction: column; z-index: 999; transform: translateX(-100%); transition: transform 0.3s ease; }
  .drawer.open { transform: translateX(0); box-shadow: 4px 0 24px rgba(0,0,0,0.12); }
  .drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #eee; font-family: 'Noto Serif', serif; font-weight: 700; font-size: 18px; }
  .drawer-head button { background: none; border: none; font-size: 24px; color: #999; cursor: pointer; }
  .drawer a { display: block; padding: 14px 20px; font-size: 16px; color: #333; text-decoration: none; border-bottom: 1px solid #f5f5f5; }
  .drawer a:hover { background: #f0fdf4; color: #059669; }
  .drawer a.active { color: #059669; font-weight: 600; background: #ecfdf5; }
  .drawer-foot { margin-top: auto; padding: 16px 20px; border-top: 1px solid #eee; }
  .drawer-foot a { text-align: center; padding: 12px; background: #059669; color: white !important; border-radius: 10px; font-weight: 600; border: none; }
}

/* ─── Nav Search Icon ────────────────── */
.nav-search {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  border: none; background: none; cursor: pointer;
  color: var(--ink-3); transition: all 0.15s;
}
.nav-search:hover { color: var(--accent); background: var(--accent-soft); }

/* ─── Insight Teaser ──────────────── */
.insight-teaser {
  display: block; text-decoration: none; color: inherit;
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border: 1.5px solid #bfdbfe;
  border-radius: 16px; padding: 28px 32px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.insight-teaser:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(37,99,235,0.1);
}
.insight-teaser__tag {
  display: inline-block; background: #2563eb; color: white;
  font-size: 11px; font-weight: 700; padding: 2px 10px;
  border-radius: 20px; letter-spacing: 0.5px; margin-bottom: 10px;
}
.insight-teaser__title {
  font-family: var(--heading); font-size: 22px; font-weight: 800;
  margin: 0 0 6px; color: var(--ink);
}
.insight-teaser__desc {
  font-size: 15px; color: var(--ink-dim); line-height: 1.5; margin: 0 0 12px;
}
.insight-teaser__cta {
  font-size: 14px; font-weight: 600; color: var(--accent);
}

/* Demo basket */
.demo-basket-section { text-align: center; }
.demo-basket-desc { color: #666; font-size: 15px; margin: 0 auto 24px; max-width: 500px; }
.demo-basket-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
  max-width: 700px; margin: 0 auto 24px;
}
.demo-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 8px; background: #fff; border-radius: 12px;
  border: 1.5px solid #e5e7eb; cursor: default; transition: all .15s;
}
.demo-item img { width: 48px; height: 48px; object-fit: contain; }
.demo-item span { font-size: 12px; color: #444; font-weight: 500; line-height: 1.2; text-align: center; }
.demo-basket-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; background: #059669; color: white;
  border: none; border-radius: 12px; font-size: 15px;
  font-weight: 600; cursor: pointer; font-family: var(--body);
  transition: background .15s;
}
.demo-basket-btn:hover { background: #047857; }
.demo-basket-btn.added { background: #2563eb; }
@media (max-width: 600px) {
  .demo-basket-grid { grid-template-columns: repeat(5, 1fr); gap: 8px; }
  .demo-item { padding: 8px 4px; }
  .demo-item img { width: 36px; height: 36px; }
  .demo-item span { font-size: 11px; }
}

/* Subcategory filter chips */
.subcat-filter { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 12px; padding: 0 16px; }
.subcat-chip { padding: 6px 14px; border-radius: 20px; border: 1.5px solid #e5e7eb; background: #fff; font-size: 13px; font-weight: 500; color: #555; cursor: pointer; font-family: inherit; transition: all .15s; white-space: nowrap; }
.subcat-chip:hover { border-color: #2563eb; color: #2563eb; }
.subcat-chip.active { background: #2563eb; color: white; border-color: #2563eb; }
.subcat-count { font-size: 11px; color: #999; margin-left: 2px; }
.subcat-chip.active .subcat-count { color: rgba(255,255,255,0.7); }

/* Curated lists grid */
.curated-lists-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; max-width: 780px; margin: 0 auto; }
.curated-list-card { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: #fff; border-radius: 14px; border: 1.5px solid #e5e7eb; text-decoration: none; color: inherit; transition: all .15s; }
.curated-list-card:hover { border-color: #2563eb; box-shadow: 0 2px 12px rgba(37,99,235,0.08); }
.curated-list-emoji { font-size: 32px; flex-shrink: 0; }
.curated-list-info { flex: 1; }
.curated-list-info h3 { font-size: 16px; font-weight: 700; margin: 0 0 2px; color: #111; }
.curated-list-info p { font-size: 13px; color: #888; margin: 0; }
.curated-list-arrow { font-size: 20px; color: #ccc; flex-shrink: 0; }
.curated-list-card:hover .curated-list-arrow { color: #2563eb; }

.nav-scan-btn {
  display: flex;
  align-items: center;
  background: #2563eb;
  color: #fff !important;
  text-decoration: none;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-left: auto;
  white-space: nowrap;
}
.nav-scan-btn:hover { background: #1d4ed8; }
