/*
Theme Name: Aitoarvio
Theme URI: https://aitoarvio.fi
Author: Aitoarvio
Description: Honest reviews of brands and products in Finland, and who really owns them. Works with the free "Site Reviews" plugin.
Version: 1.4.0
Requires at least: 6.3
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: aitoarvio
*/

:root {
  --blue: #1F4FD1;
  --blue-dark: #16389A;
  --navy: #0F1E36;
  --gold: #F2A20C;
  --ice: #E8EEFC;
  --mist: #F4F6F9;
  --line: #E3E6EB;
  --line-strong: #C9CFD8;
  --muted: #556070;
  --body: #2E3A4D;
  --star-off: #D9DDE3;
  --radius: 14px;
  --display: "Plus Jakarta Sans", system-ui, sans-serif;
  --text: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: #fff; color: var(--navy); font-family: var(--text); font-size: 16px; line-height: 1.55; }
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; letter-spacing: -0.01em; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 600px) { .wrap { padding: 0 18px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 10px; font-weight: 600; border: 1px solid transparent; cursor: pointer; font-family: inherit; font-size: 16px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-ghost { border-color: var(--line-strong); color: var(--navy); background: #fff; }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand-logo { display: flex; align-items: center; gap: 10px; color: var(--navy); font-family: var(--display); font-weight: 800; font-size: 22px; }
.brand-logo:hover { color: var(--navy); }
.brand-logo svg, .brand-logo img { width: 36px; height: 36px; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; font-weight: 500; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 22px; }
.main-nav a { color: var(--navy); }
.main-nav a:hover { color: var(--blue); }
.main-nav a.btn-primary, .main-nav a.btn-primary:hover, .header-cta, .header-cta:hover { color: #fff; }

/* Hero */
.hero { background: var(--mist); }
.hero .wrap { padding-top: 72px; padding-bottom: 72px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.hero h1 { margin: 0; max-width: 760px; font-size: clamp(32px, 5vw, 48px); font-weight: 800; letter-spacing: -0.02em; }
.hero p { margin: 0; max-width: 600px; font-size: 19px; color: var(--muted); }
.search-form { width: 100%; max-width: 640px; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.search-form input[type=search] { flex: 1 1 300px; min-width: 0; height: 56px; padding: 0 20px; border: 1px solid var(--line-strong); border-radius: 12px; font-size: 16px; font-family: inherit; background: #fff; }
.search-form button { height: 56px; padding: 0 28px; border: 0; border-radius: 12px; background: var(--blue); color: #fff; font-size: 16px; font-weight: 600; font-family: inherit; cursor: pointer; }

/* Sections */
.section { padding-top: 56px; }
.section:last-of-type { padding-bottom: 72px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.section-head h2, .section h2 { margin: 0; font-size: 26px; }
.grid { display: grid; gap: 16px; }
.grid-cats { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.grid-cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-products { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.grid-posts { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }

.cat-card { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; color: var(--navy); font-weight: 600; }
.cat-card:hover { border-color: var(--blue); color: var(--navy); }
.letter { flex: none; display: inline-flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; border-radius: 10px; }
.letter-sm { width: 40px; height: 40px; background: var(--ice); color: var(--blue); }
.letter-md { width: 52px; height: 52px; font-size: 22px; background: var(--navy); color: #fff; border-radius: 12px; }
.letter-lg { width: 96px; height: 96px; font-size: 44px; background: var(--navy); color: #fff; border-radius: 20px; }
.logo-img { flex: none; object-fit: contain; background: #fff; border: 1px solid var(--line); box-sizing: border-box; }
.logo-md { width: 52px; height: 52px; padding: 7px; border-radius: 12px; }
.logo-lg { width: 96px; height: 96px; padding: 12px; border-radius: 20px; }

.card { display: flex; flex-direction: column; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--navy); background: #fff; }
.card:hover { border-color: var(--blue); color: var(--navy); }
.card-top { display: flex; align-items: center; gap: 12px; }
.card-title { font-family: var(--display); font-weight: 700; font-size: 19px; }
.card-sub { font-size: 14px; color: var(--muted); }

.stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.stars svg { width: 18px; height: 18px; }
.stars-lg svg { width: 24px; height: 24px; }
.rating-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rating-num { font-weight: 700; }
.rating-count { font-size: 14px; color: var(--muted); }

.chip { align-self: flex-start; display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.chip-fi { background: var(--ice); color: var(--blue); }
.chip-fo { background: #FDF0E1; color: #8A4300; }

/* Owners strip */
.owners { background: var(--navy); color: #fff; border-radius: 20px; padding: 40px; display: flex; flex-direction: column; gap: 24px; }
.owners h2 { color: #fff; }
.owners p { margin: 0; color: #C5CEDC; font-size: 17px; }
.owner-card { background: #1B2D4C; border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 6px; color: #fff; }
.owner-card:hover { color: #fff; background: #223860; }
.owner-card .b { font-family: var(--display); font-weight: 700; font-size: 20px; }
.owner-card .c { color: #C5CEDC; font-size: 15px; }
.owner-card .o { font-weight: 600; color: #FFD48A; }
.owners .more { align-self: flex-start; color: #fff; font-weight: 600; border-bottom: 2px solid #FFD48A; }
@media (max-width: 600px) { .owners { padding: 24px; } }

/* Posts */
.post-card { display: flex; flex-direction: column; gap: 12px; color: var(--navy); }
.post-card:hover { color: var(--blue); }
.post-thumb { height: 180px; border-radius: var(--radius); background: var(--ice); overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-tag { font-size: 13px; font-weight: 600; color: var(--blue); text-transform: uppercase; letter-spacing: 0.06em; }
.post-title { font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.3; }

/* Brand / product page */
.page-pad { padding-top: 24px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 36px; }
.crumbs { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; }
.split { display: flex; flex-wrap: wrap; gap: 32px; align-items: stretch; }
.split-main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.split-side { flex: 1 1 320px; background: var(--mist); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.split-side h2 { margin: 0; font-size: 18px; }
.fact { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.fact span:first-child { color: var(--muted); }
.fact span:last-child { font-weight: 600; text-align: right; }
.entity-head { display: flex; align-items: center; gap: 20px; }
.entity-head h1 { margin: 0; font-size: clamp(30px, 4vw, 40px); font-weight: 800; }
.entity-head .sub { color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.product-card { padding: 14px; gap: 10px; }
.product-photo { height: 140px; border-radius: 10px; background: var(--mist); overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; }
.product-photo img { width: 100%; height: 100%; object-fit: cover; }
.product-hero { flex: 1 1 380px; min-height: 360px; border-radius: 20px; background: var(--mist); overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.product-hero img { width: 100%; height: 100%; object-fit: cover; }
.add-card { border-style: dashed; border-width: 2px; border-color: var(--line-strong); align-items: center; justify-content: center; text-align: center; color: var(--muted); font-weight: 600; min-height: 220px; }
.owner-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; font-size: 15px; }

.reviews-box { display: flex; flex-direction: column; gap: 20px; }
.reviews-box h2 { margin: 0; font-size: 24px; }
.form-box { background: var(--mist); border-radius: 18px; padding: 28px; }
.form-box h2 { margin-top: 0; }
.notice { padding: 16px; border-radius: 12px; background: #FDF0E1; color: #8A4300; }

/* Archive / search */
.list-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; }
.list-head h1 { margin: 0; font-size: 34px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters a { padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--navy); font-size: 14px; font-weight: 500; }
.filters a.on, .filters a:hover { background: var(--ice); border-color: var(--blue); color: var(--blue); }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pagination .page-numbers { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--navy); }
.pagination .current { background: var(--blue); border-color: var(--blue); color: #fff; }

/* Blog / pages */
.prose { max-width: 760px; margin: 0 auto; padding: 40px 32px 80px; font-size: 18px; color: var(--body); }
.prose h1 { font-size: clamp(32px, 5vw, 44px); color: var(--navy); }
.prose h2 { font-size: 28px; color: var(--navy); margin-top: 1.8em; }
.prose h3 { font-size: 22px; color: var(--navy); }
.prose .meta { color: var(--muted); font-size: 15px; }
.prose img { border-radius: var(--radius); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--mist); }
.site-footer .wrap { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 20px; }

/* Site Reviews plugin: match brand colours */
.glsr { --glsr-text-base: 16px; }
.glsr .glsr-star-full, .glsr .glsr-star-half { color: var(--gold); }
.glsr-review { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px !important; margin-bottom: 16px; }
.glsr-form button[type=submit], .glsr-button { background: var(--blue) !important; border-color: var(--blue) !important; color: #fff !important; border-radius: 10px !important; min-height: 46px; font-weight: 600; }

/* Contact form */
.aito-contact { max-width: 680px; margin: 8px 0 32px; }
.aito-contact form { display: grid; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.aito-contact label { display: grid; gap: 6px; font-weight: 600; color: var(--navy); font-size: 15px; }
.aito-contact input[type=text], .aito-contact input[type=email], .aito-contact select, .aito-contact textarea { width: 100%; font: inherit; font-weight: 400; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; color: var(--navy); box-sizing: border-box; }
.aito-contact input:focus, .aito-contact select:focus, .aito-contact textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.aito-contact .cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.aito-contact .cf-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; }
.aito-contact .cf-check input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.aito-contact button { justify-self: start; }
.aito-contact .cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-note { padding: 14px 16px; border-radius: 10px; margin-bottom: 16px; }
.cf-ok { background: #E7F6EC; color: #14532D; border: 1px solid #A7DDB8; }
.cf-err { background: #FDECEC; color: #7F1D1D; border: 1px solid #F3B4B4; }
@media (max-width: 640px) { .aito-contact .cf-row { grid-template-columns: 1fr; } .aito-contact form { padding: 18px; } }

/* Brand list: search first, browsing tools quiet underneath */
.list-hero { text-align: center; width: 100%; max-width: 760px; margin: 16px auto 0; }
.list-hero h1 { margin: 0; font-size: 40px; letter-spacing: -0.02em; }
.list-hero p { margin: 8px 0 20px; color: #556070; font-size: 17px; }
.list-hero .search-form { width: 100%; box-sizing: border-box; max-width: 720px; margin: 0 auto; flex-wrap: nowrap; padding: 6px; background: #fff; border: 1px solid var(--line-strong); border-radius: 16px; box-shadow: 0 10px 30px rgba(15,30,54,.10); }
.list-hero .search-form:focus-within { border-color: var(--blue); box-shadow: 0 10px 30px rgba(31,79,209,.18); }
.list-hero .search-form input[type=search] { border: 0; height: 58px; font-size: 17px; background: transparent; }
.list-hero .search-form input[type=search]:focus { outline: none; }
.list-hero .search-form button { height: 58px; }

.browse { display: grid; gap: 10px; padding: 14px 0; margin: 4px 0 -12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.browse-row { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.browse-label { flex: none; width: 52px; line-height: 28px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #8A93A3; }
.browse .filters { flex-wrap: wrap; gap: 6px; min-width: 0; }
.browse .filters a { flex: none; padding: 5px 12px; font-size: 13px; white-space: nowrap; border-color: var(--line); }

/* A–Z letter bar */
.az { display: flex; flex-wrap: wrap; gap: 2px; min-width: 0; }
.az a, .az span { flex: none; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 5px; border-radius: 7px; font-weight: 600; font-size: 13px; text-decoration: none; }
.az a { color: var(--navy); }
.az a:hover { background: var(--ice); color: var(--blue); }
.az a.on { background: var(--blue); color: #fff; }
.az span.off { color: #C3C8D0; cursor: default; }
.az-note { margin: -12px 0 -12px; font-weight: 600; color: var(--navy); }

@media (max-width: 640px) {
  .list-hero h1 { font-size: 30px; }
  .list-hero p { font-size: 15px; }
  .list-hero .search-form input[type=search] { height: 50px; font-size: 16px; padding: 0 12px; }
  .list-hero .search-form button { height: 50px; padding: 0 18px; }
  .browse-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .browse .filters { width: 100%; }
  .az { width: 100%; }
}

/* Write a review page */
.wr { width: 100%; max-width: 720px; margin: 0 auto; }
.wr-steps { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 24px; counter-reset: s; }
.wr-steps li { counter-increment: s; flex: 1; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--mist); color: #8A93A3; font-weight: 600; font-size: 14px; }
.wr-steps li::before { content: counter(s); flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--line-strong); font-size: 13px; }
.wr-steps li.on { background: var(--ice); color: var(--blue); }
.wr-steps li.on::before { background: var(--blue); border-color: var(--blue); color: #fff; }
.wr-steps li.done { color: var(--navy); }
.wr-steps li.done::before { content: "✓"; background: #E7F6EC; border-color: #A7DDB8; color: #14532D; }
.wr-label { display: block; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 22px; color: var(--navy); margin-bottom: 12px; }
.wr-box { max-width: none; flex-wrap: nowrap; padding: 6px; background: #fff; border: 1px solid var(--line-strong); border-radius: 16px; box-shadow: 0 10px 30px rgba(15,30,54,.10); margin: 0; }
.wr-box:focus-within { border-color: var(--blue); box-shadow: 0 10px 30px rgba(31,79,209,.18); }
.wr-box input[type=search] { border: 0; height: 56px; font-size: 17px; background: transparent; }
.wr-box input[type=search]:focus { outline: none; }
.wr-list { list-style: none; margin: 8px 0 0; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 30px rgba(15,30,54,.08); max-height: 440px; overflow-y: auto; }
.wr-list li a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; color: var(--navy); text-decoration: none; }
.wr-list li a:hover, .wr-list li.on a { background: var(--ice); }
.wr-list li a span { display: grid; gap: 2px; min-width: 0; }
.wr-list li a strong { font-weight: 700; }
.wr-list li a small { color: #6B7585; font-size: 13px; }
.wr-list .wr-none { padding: 12px; color: #6B7585; }
.wr-icon { flex: none; width: 44px; height: 44px; border-radius: 10px; object-fit: contain; background: #fff; border: 1px solid var(--line); }
.wr-letter { display: grid; place-items: center; background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 800; font-size: 18px; }
.wr-empty { margin: 12px 0 0; color: #6B7585; }
.wr-picked { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.wr-picked-text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.wr-picked-text strong { font-size: 18px; color: var(--navy); }
.wr-picked-text span { color: #6B7585; font-size: 14px; }
.wr-change { font-weight: 600; }
.wr-alt { margin: 12px 0 0; font-size: 14px; color: #556070; }
.wr-alt a { display: inline-block; margin: 4px 4px 0 0; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; }
.wr-form { margin-top: 20px; }
.wr-foot { margin-top: 20px; font-size: 14px; color: #556070; }
@media (max-width: 640px) {
  .wr-steps li { font-size: 12px; padding: 8px 10px; }
  .wr-label { font-size: 19px; }
  .wr-box input[type=search] { height: 50px; font-size: 16px; padding: 0 12px; }
}

/* Live search suggestions (all search boxes) */
.sg-host { position: relative; }
.sg-list { position: absolute; z-index: 60; top: calc(100% + 8px); left: 0; right: 0; list-style: none; margin: 0; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(15,30,54,.14); max-height: 420px; overflow-y: auto; text-align: left; }
.sg-list li { margin: 0; }
.sg-item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; color: var(--navy); text-decoration: none; }
.sg-item:hover, .sg-list li.on .sg-item { background: var(--ice); color: var(--navy); }
.sg-text { display: grid; gap: 1px; min-width: 0; }
.sg-text strong { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-text small { color: #6B7585; font-size: 13px; }
.sg-icon { flex: none; width: 40px; height: 40px; border-radius: 9px; object-fit: contain; background: #fff; border: 1px solid var(--line); }
.sg-letter { display: grid; place-items: center; background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 800; font-size: 16px; }
.sg-head { padding: 6px 10px 4px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #B45309; }
.sg-none { padding: 12px; color: #6B7585; font-size: 14px; }
.sg-all { display: block; padding: 10px; margin-top: 4px; border-top: 1px solid var(--line); font-weight: 600; font-size: 14px; }

.data-credit { color: #8A93A3; font-size: 12px; }
.data-credit a { color: inherit; text-decoration: underline; }

/* Product photos */
.product-photo img, .product-hero img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.photo-credit { margin: 6px 0 0; font-size: 12px; color: #8A93A3; }
.photo-credit a { color: inherit; text-decoration: underline; }
.product-hero-wrap { flex: 1 1 380px; display: flex; flex-direction: column; min-width: 0; }
.product-hero-wrap .product-hero { flex: 1 1 auto; }

/* Homepage hero (split layout with featured brand card) */
.home-hero { background: #fff; border-bottom: 1px solid var(--line); }
.home-hero-in { display: flex; align-items: center; gap: 48px; padding-top: 64px; padding-bottom: 64px; }
.home-hero-text { flex: 1 1 520px; min-width: 0; }
.trust-badge { display: inline-block; background: #FDF0D6; color: #7A4A00; font-size: 13px; font-weight: 600; border-radius: 999px; padding: 5px 12px; margin-bottom: 14px; }
.home-hero h1 { margin: 0; font-size: clamp(32px, 4.4vw, 48px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; color: var(--navy); }
.home-hero-text > p { margin: 14px 0 22px; font-size: 18px; color: #556070; max-width: 560px; }
.home-hero .search-form { max-width: 560px; margin: 0; flex-wrap: nowrap; padding: 6px; background: #fff; border: 1px solid var(--line-strong); border-radius: 16px; box-shadow: 0 10px 30px rgba(15,30,54,.10); }
.home-hero .search-form:focus-within { border-color: var(--blue); box-shadow: 0 10px 30px rgba(31,79,209,.18); }
.home-hero .search-form input[type=search] { border: 0; height: 54px; background: transparent; }
.home-hero .search-form input[type=search]:focus { outline: none; }
.home-hero .search-form button { height: 54px; }
.hero-card-wrap { position: relative; flex: 0 0 300px; height: 330px; }
.hero-card-back { position: absolute; inset: 22px 0 0 22px; background: var(--blue); border-radius: 22px; transform: rotate(4deg); }
.hero-card { position: absolute; inset: 0 22px 22px 0; display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 20px; color: var(--navy); text-decoration: none; box-shadow: 0 12px 30px rgba(15,30,54,.10); transition: transform .15s ease; }
.hero-card:hover { transform: translateY(-3px); color: var(--navy); }
.hero-card-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #8A93A3; }
.hero-card-brand { display: flex; align-items: center; gap: 10px; margin: 4px 0 6px; }
.hero-card-brand strong { display: block; font-size: 17px; }
.hero-card-brand .chip { margin-top: 3px; font-size: 11px; padding: 2px 8px; }
.hero-card-score { display: flex; align-items: center; gap: 8px; font-size: 30px; font-weight: 800; }
.hero-card-score .stars svg { width: 18px; height: 18px; }
.hero-card-count { font-size: 12px; color: #8A93A3; margin-top: -4px; }
.hero-bars { display: grid; gap: 6px; margin: 8px 0 4px; }
.hero-bar { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #8A93A3; }
.hero-bar em { font-style: normal; width: 22px; }
.hero-bar > span { flex: 1; height: 7px; border-radius: 4px; background: var(--mist); overflow: hidden; }
.hero-bar i { display: block; height: 100%; background: var(--gold); border-radius: 4px; }
.hero-card-quote { font-size: 13px; color: #3F4A5C; line-height: 1.45; margin-top: auto; }
.hero-card-empty { color: #556070; font-size: 14px; margin-top: 8px; }
.hero-card-cta { margin-top: auto; justify-content: center; }
@media (max-width: 860px) {
  .home-hero-in { flex-direction: column; align-items: stretch; gap: 36px; padding-top: 40px; padding-bottom: 48px; }
  .home-hero-text { flex: none; }
  .hero-card-wrap { flex: none; width: 100%; max-width: 320px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .home-hero-text > p { font-size: 16px; }
  .home-hero .search-form input[type=search] { height: 48px; padding: 0 10px; }
  .home-hero .search-form button { height: 48px; padding: 0 16px; }
}

/* Category icons */
.cat-icon { flex: none; width: 42px; height: 42px; border-radius: 10px; background: var(--ice); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; transition: background .15s, color .15s; }
.cat-icon svg { width: 24px; height: 24px; }
.cat-card:hover .cat-icon { background: var(--blue); color: #fff; }

/* ---------- Responsive: header and mobile menu ---------- */
.site-header .wrap { flex-wrap: nowrap; }
.brand-logo { margin-right: auto; }
.header-cta { order: 3; }
.main-nav { order: 2; }
.menu-toggle { order: 4; display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; color: var(--navy); cursor: pointer; align-items: center; justify-content: center; padding: 0; }
.menu-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.menu-toggle .m-close { display: none; }
.menu-open .menu-toggle .m-open { display: none; }
.menu-open .menu-toggle .m-close { display: inline; }
.cta-short { display: none; }
@media (max-width: 900px) {
  .site-header { position: relative; }
  .site-header .wrap { flex-wrap: wrap; gap: 10px; }
  .menu-toggle { display: inline-flex; }
  .header-cta { min-height: 44px; padding: 0 14px; font-size: 15px; }
  .main-nav { order: 5; display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 6px 0 4px; border-top: 1px solid var(--line); }
  .menu-open .main-nav { display: flex; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li a { display: block; padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--line); }
  .main-nav li:last-child a { border-bottom: 0; }
}
@media (max-width: 420px) {
  .brand-logo { font-size: 19px; gap: 8px; }
  .brand-logo svg, .brand-logo img { width: 32px; height: 32px; }
  .cta-long { display: none; }
  .cta-short { display: inline; }
}

/* ---------- Responsive: pages ---------- */
.prose table, .entry-content table { display: block; max-width: 100%; overflow-x: auto; }
.prose pre { overflow-x: auto; }
.prose, .split-main, .split-side { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .prose { padding: 28px 18px 56px; font-size: 17px; }
  .prose h2 { font-size: 23px; }
  .section h2, .section-head h2 { font-size: 22px; }
  .entity-head { gap: 14px; align-items: flex-start; }
  .logo-lg, .letter-lg { width: 68px; height: 68px; }
  .letter-lg { font-size: 30px; border-radius: 16px; }
  .split { gap: 20px; }
  .split-side { padding: 18px; }
  .actions .btn { flex: 1 1 auto; justify-content: center; }
  .product-hero { min-height: 260px; }
  .site-footer .wrap { flex-direction: column; gap: 14px; }
  .site-footer ul { gap: 12px 18px; }
  .grid-cats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cat-card { padding: 12px; gap: 10px; font-size: 14px; }
  .cat-icon { width: 36px; height: 36px; }
  .cat-icon svg { width: 20px; height: 20px; }
  .grid-cards, .grid-posts { grid-template-columns: 1fr; }
  .grid-products { grid-template-columns: 1fr 1fr; gap: 10px; }
  .glsr input, .glsr textarea, .glsr select { width: 100%; max-width: 100%; box-sizing: border-box; }
  .btn { font-size: 15px; }
}
@media (max-width: 360px) {
  .grid-cats { grid-template-columns: 1fr; }
}

/* Blog posts */
.prose p.your-note mark { background: #FFF1CC; padding: 2px 6px; border-radius: 6px; }
.prose table { border-collapse: collapse; font-size: 16px; margin: 1.2em 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.prose th { background: var(--mist); }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.prose img { width: 100%; height: auto; }

/* Homepage background: logo stars (star + tick) */
.home-hero { position: relative; overflow: hidden; }
.home-hero-in { position: relative; z-index: 1; }
.hero-stars { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-stars .hs { position: absolute; display: block; }
.hs-b { color: var(--blue); opacity: .24; }
.hs-b2 { color: var(--blue); opacity: .13; }
.hs-g { color: var(--gold); opacity: .55; }
@media (max-width: 900px) { .hero-stars .hs-m { display: none; } .hero-stars .hs { opacity: .12; } .hero-stars .hs-g { opacity: .3; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-stars .hs { animation: hs-float 9s ease-in-out infinite alternate; }
  .hero-stars .hs:nth-child(3n) { animation-duration: 12s; animation-delay: -4s; }
  .hero-stars .hs:nth-child(3n+1) { animation-duration: 10s; animation-delay: -7s; }
}
@keyframes hs-float { to { translate: 0 -8px; } }

/* Product facts */
.facts { margin: 40px 0; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.facts h2 { margin: 0 0 18px; font-size: 26px; }
.facts h3 { font-size: 18px; margin: 22px 0 8px; }
.facts h3 small { font-weight: 400; color: var(--muted); font-size: 14px; }
.facts-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.facts-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.facts-table th, .facts-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts-table th { width: 42%; font-weight: 600; color: var(--navy); }
.facts-table td { color: var(--body); }
.facts-table td.v-ok { color: #1E7A3C; font-weight: 600; }
.facts-table td.v-na { color: var(--muted); }
.nutri { background: var(--mist); border-radius: 12px; padding: 4px 16px 12px; }
.nutri-table tr.sub th { padding-left: 24px; font-weight: 400; }
.nutri-table td { text-align: right; white-space: nowrap; }
.facts-ing { font-size: 15px; line-height: 1.6; color: var(--body); margin: 0; }
.facts-note { font-size: 13px; color: var(--muted); margin: 16px 0 0; }
.facts-note a { color: var(--muted); }
.nscore { font-weight: 800; }
.nscore-a { color: #1E7A3C; } .nscore-b { color: #5A9E2F; } .nscore-c { color: #B58900; } .nscore-d { color: #D9730D; } .nscore-e { color: #C0392B; }
.facts-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; }
.facts-chips a { color: var(--blue); }
@media (max-width: 760px) {
  .facts { padding: 18px; }
  .facts-grid { grid-template-columns: 1fr; gap: 8px; }
  .facts-table th { width: 46%; }
}

.facts-chips .chip { align-self: auto; background: var(--mist); color: var(--navy); font-weight: 600; }
.facts-chips .chip.chip-fi { background: #E3F4E8; color: #1E7A3C; }
.nutri-table th { width: auto; }
.facts-table td.nscore-a { color: #1E7A3C; } .facts-table td.nscore-b { color: #5A9E2F; } .facts-table td.nscore-c { color: #B58900; } .facts-table td.nscore-d { color: #D9730D; } .facts-table td.nscore-e { color: #C0392B; }

/* Barcode scanner */
.scan-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 46px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; color: var(--navy); font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; }
.scan-btn svg { width: 22px; height: 22px; }
.scan-btn:hover { border-color: var(--blue); color: var(--blue); }
.scan-header { order: 3; }
.scan-inline { min-height: 40px; padding: 0 12px; margin-left: 4px; vertical-align: middle; }
.hero-scan { margin: 14px 0 0; color: #556070; font-size: 15px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
@media (max-width: 900px) { .scan-header { min-height: 44px; padding: 0 10px; } }
@media (max-width: 420px) { .scan-header span { display: none; } .scan-header { width: 44px; justify-content: center; padding: 0; } }
.scan-open { overflow: hidden; }
.scan-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.scan-modal[hidden] { display: none; }
.scan-backdrop { position: absolute; inset: 0; background: rgba(15, 30, 54, .6); }
.scan-box { position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border-radius: 18px; padding: 20px; box-shadow: 0 20px 60px rgba(15,30,54,.3); }
.scan-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.scan-head h2 { margin: 0; font-size: 22px; }
.scan-x { width: 40px; height: 40px; border: 0; border-radius: 10px; background: var(--mist); font-size: 26px; line-height: 1; cursor: pointer; color: var(--navy); }
.scan-cam { position: relative; aspect-ratio: 4 / 3; background: #0F1E36; border-radius: 12px; overflow: hidden; }
.scan-cam video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-frame { position: absolute; left: 12%; right: 12%; top: 32%; bottom: 32%; border: 3px solid var(--gold); border-radius: 10px; box-shadow: 0 0 0 999px rgba(15,30,54,.35); }
.scan-status { margin: 12px 0 0; font-size: 15px; color: var(--body); }
.scan-manual { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.scan-manual[hidden] { display: none; }
.scan-manual label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.scan-manual div { display: flex; gap: 8px; }
.scan-manual input { flex: 1; min-width: 0; height: 46px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 10px; font: inherit; font-size: 16px; letter-spacing: .04em; }
.scan-note-top { margin: 0 0 12px; font-weight: 700; color: #8A4300; background: #FDF0E1; border-radius: 10px; padding: 8px 12px; font-size: 14px; }
.scan-product { display: flex; gap: 14px; align-items: flex-start; }
.scan-product img, .scan-noimg { flex: none; width: 96px; height: 96px; object-fit: contain; border-radius: 10px; background: var(--mist); }
.scan-name { display: block; font-size: 18px; line-height: 1.3; color: var(--navy); }
.scan-meta { display: block; font-size: 14px; color: var(--muted); margin-top: 3px; }
.scan-meta em { font-style: normal; color: var(--blue); }
.scan-box .facts-chips { margin-top: 14px; }
.scan-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.scan-actions .btn { flex: 1 1 auto; justify-content: center; }
.scan-again { background: #fff; border: 1px solid var(--line-strong); color: var(--navy); }
.scan-small { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.scan-small a { color: var(--muted); }
