/* Prisradar — gemensam stil (redesign 1a "Saklig katalog", nov 2026)
   Tokens, typsnitt, ticker, sidhuvud, mobilmeny, sidfot och knappar.
   Sidspecifik stil ligger i respektive sida. Brytpunkt mobil: 720px. */

/* --- Typsnitt (självhostade, inga anrop till Google) --- */
@font-face {
    font-family: 'Geist';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url(/fonts/geist-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Geist';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url(/fonts/geist-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 500 600;
    font-display: swap;
    src: url(/fonts/space-grotesk-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 500 600;
    font-display: swap;
    src: url(/fonts/space-grotesk-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Tokens. Mörkt tema följer enheten. --- */
:root {
    --bg: #f5f7f6;
    --sf: #ffffff;
    --ink: #151a16;
    --mu: #5a5f5b;
    --ln: #dcdfdc;
    --br: #007f3d;      /* varumärkesgrön, knappfyllnad med vit text */
    --bri: #006731;     /* grön som text/länk */
    --brt: #e4f5e8;     /* grön tint */
    --dl: #af3e30;      /* rabatt-badge */
    --dli: #a8372a;     /* rabatt/deal-typ som text */
    --bar: #151a16;     /* ticker */
    --bild: #ffffff;    /* produktbildsytor är alltid vita */
    --font: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --siffror: 'Space Grotesk', 'Geist', system-ui, sans-serif;
    color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0e100e;
        --sf: #181a18;
        --ink: #f0f2f1;
        --mu: #a0a6a1;
        --ln: #2c2f2c;
        --bri: #78d694;
        --brt: #17291c;
        --dli: #fb9989;
        --bar: #050605;
    }
}

/* --- Bas --- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.las { overflow: hidden; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--br); outline-offset: 2px; }
.num { font-family: var(--siffror); }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Ikon via CSS-mask, färgas med currentColor */
.ikon {
    display: inline-block;
    width: 15px; height: 15px;
    flex-shrink: 0;
    background: currentColor;
    -webkit-mask: var(--ikon) center / contain no-repeat;
    mask: var(--ikon) center / contain no-repeat;
}
.ikon-telegram { --ikon: url(/assets/telegram.svg); width: 14px; height: 14px; }
.ikon-discord { --ikon: url(/assets/discord.svg); }
.ikon-facebook { --ikon: url(/assets/facebook.svg); }

/* --- Knappar och etiketter --- */
.knapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--br);
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
    padding: 11px 20px;
    text-decoration: none;
    white-space: nowrap;
}
.knapp:hover { filter: brightness(.92); text-decoration: none; }
.knapp-stor { font-size: 15px; padding: 13px 22px; border-radius: 8px; }
.eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--bri);
}
.pill {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 4px 9px;
    border-radius: 5px;
    color: var(--bri);
    background: var(--brt);
}
.pill-kant { color: var(--mu); background: none; border: 1px solid var(--ln); padding: 3px 9px; }

/* --- Ticker --- */
.ticker {
    background: var(--bar);
    color: #fff;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-size: 13px;
}
.ticker-text { color: #cbcfcc; }
.ticker-kort { display: none; }
.ticker a { display: flex; align-items: center; gap: 6px; font-weight: 500; }

/* --- Sidhuvud --- */
.sidhuvud { background: var(--sf); border-bottom: 1px solid var(--ln); }
.sidhuvud .wrap {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo:hover { text-decoration: none; }
.logo img { width: 32px; height: 32px; display: block; }
.logo span { font-size: 20px; font-weight: 650; letter-spacing: -.02em; }
.nav { display: flex; gap: 28px; font-size: 14px; color: var(--mu); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 500; }
.meny-knapp {
    display: none;
    height: 44px;
    padding: 0 10px;
    margin-right: -10px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    align-items: center;
    gap: 8px;
}
.meny-streck { display: flex; flex-direction: column; gap: 4px; }
.meny-streck span { width: 16px; height: 1.5px; background: currentColor; }

/* --- Mobilmeny (helskärm) --- */
.meny {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: var(--sf);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.meny[hidden] { display: none; }
.meny-topp {
    height: 56px;
    flex-shrink: 0;
    padding: 0 8px 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--ln);
}
.meny-topp .logo { gap: 8px; }
.meny-topp .logo img { width: 28px; height: 28px; }
.meny-topp .logo span { font-size: 18px; }
.meny-stang {
    height: 44px;
    padding: 0 10px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
}
.meny-nav { display: flex; flex-direction: column; padding: 8px 16px; }
.meny-nav a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    border-bottom: 1px solid var(--ln);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -.02em;
}
.meny-nav a:hover { text-decoration: none; }
.meny-nav a[aria-current="page"]::after {
    content: "Aktuell sida";
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--bri);
}
.meny-nav .pill { font-size: 11.5px; padding: 3px 8px; letter-spacing: .06em; }
.meny-nav a[aria-current="page"] .pill { display: none; }
.meny-folj { padding: 24px 16px; display: flex; flex-direction: column; gap: 10px; }
.meny-folj-rubrik {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--mu);
}
.meny-folj-knappar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.meny-folj-knappar a {
    height: 48px;
    border: 1px solid var(--ln);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 500;
}
.meny-folj-knappar a:hover { text-decoration: none; border-color: var(--mu); }

/* --- Sidfot --- */
.sidfot {
    background: var(--sf);
    border-top: 1px solid var(--ln);
    font-size: 13px;
    line-height: 1.6;
    color: var(--mu);
}
.sidfot-grid {
    padding-top: 40px;
    padding-bottom: 32px;
    display: grid;
    grid-template-columns: 1fr 1.6fr 1fr;
    grid-template-areas: "logo text folj" "copy text folj";
    grid-template-rows: auto 1fr;
    column-gap: 48px;
    row-gap: 12px;
}
.sf-logo { grid-area: logo; display: flex; align-items: center; gap: 8px; color: var(--ink); }
.sf-logo img { width: 24px; height: 24px; }
.sf-logo span { font-weight: 600; font-size: 15px; }
.sf-copy { grid-area: copy; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.sf-copy a { text-decoration: underline; }
.sf-text { grid-area: text; display: flex; flex-direction: column; gap: 10px; }
.sf-folj { grid-area: folj; display: flex; flex-direction: column; gap: 10px; color: var(--ink); }
.sf-folj-rubrik {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--mu);
}
.sf-folj a { display: flex; align-items: center; gap: 8px; align-self: flex-start; }

/* Synlighet per skärmstorlek */
.endast-mobil { display: none; }

/* ============ Mobil ============ */
@media (max-width: 720px) {
    .wrap { padding: 0 16px; }
    .endast-mobil { display: revert; }
    .endast-desktop { display: none !important; }

    .ticker { height: 32px; gap: 16px; font-size: 12.5px; font-weight: 500; }
    .ticker-lang { display: none; }
    .ticker-kort { display: inline; }
    .ticker .ikon-telegram { width: 13px; height: 13px; }
    .ticker .ikon-discord { width: 14px; height: 14px; }

    .sidhuvud { position: sticky; top: 0; z-index: 20; }
    .sidhuvud .wrap { height: 56px; padding-right: 8px; }
    .logo { gap: 8px; }
    .logo img { width: 28px; height: 28px; }
    .logo span { font-size: 18px; }
    .nav { display: none; }
    .meny-knapp { display: flex; }

    .sidfot { font-size: 12px; }
    .sidfot-grid {
        padding-top: 24px;
        padding-bottom: 32px;
        grid-template-columns: 1fr;
        grid-template-areas: "logo" "folj" "text" "copy";
        grid-template-rows: none;
        row-gap: 14px;
    }
    .sf-copy { flex-direction: row; gap: 12px; }
    .sf-folj { flex-direction: row; gap: 20px; font-size: 14px; font-weight: 500; }
    .sf-folj a { padding: 10px 0; }
    .sf-folj .ikon, .sf-folj-rubrik { display: none; }
}
