/* ============================================================
   Profit.StoreFront — publik prisjämförelse-sida
   Editorial-tonad design: serif-display + sans-body, varma toner,
   subtila lager och ett distinkt besparings-uttryck.
   ============================================================ */

:root {
    /* Bakgrunder */
    --bg: #f6f3ec;
    --bg-soft: #ede9dd;
    --bg-warm: #fbf6ec;
    --surface: #ffffff;

    /* Bordar */
    --border: #e6dfd0;
    --border-strong: #d3cab5;

    /* Text */
    --text: #1c211c;
    --text-soft: #4a504a;
    --text-muted: #7a8078;
    --text-faint: #a8aea4;

    /* Brand & accent */
    --brand: #234c41;            /* djup mossgrön */
    --brand-deep: #122a23;
    --brand-soft: #e2ebe6;
    --brand-glow: rgba(35, 76, 65, 0.12);

    --accent: #c2410c;           /* terrakotta — varm sidoaccent */
    --accent-soft: #fce5d4;

    --savings: #15803d;
    --savings-bg: #d6f0db;
    --savings-strong: #14532d;

    /* Skugga och radius */
    --shadow-xs: 0 1px 2px rgba(20, 30, 25, 0.04);
    --shadow-sm: 0 2px 6px rgba(20, 30, 25, 0.06);
    --shadow-md: 0 6px 20px rgba(20, 30, 25, 0.08);
    --shadow-lg: 0 20px 50px rgba(20, 30, 25, 0.12);

    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 24px;
    --r-pill: 999px;

    /* Typografi */
    --font-display: 'Fraunces', 'Georgia', serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
    padding: 0;
}

/* ===== Layout ============================================== */

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

main.page-main { flex: 1; padding-bottom: 5rem; }

/* ===== Hero =============================================== */

.hero {
    position: relative;
    overflow: hidden;
    padding: 4rem 0 3.5rem;
    background:
        radial-gradient(800px 360px at 50% 0%, rgba(194, 65, 12, 0.06), transparent 70%),
        radial-gradient(1000px 500px at 50% 100%, rgba(35, 76, 65, 0.08), transparent 60%),
        linear-gradient(180deg, #fbf6ec 0%, #f6f3ec 100%);
}

.hero::before {
    /* Subtilt prick-mönster för djup. Pos:as svagt så det inte konkurrerar
       med innehållet. */
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(35, 76, 65, 0.07) 1px, transparent 1.5px);
    background-size: 28px 28px;
    background-position: 0 0;
    opacity: 0.5;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    text-align: center;
}

.hero-live {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    padding: 0.4rem 0.9rem 0.4rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-soft);
    letter-spacing: 0.02em;
    box-shadow: var(--shadow-xs);
    margin-bottom: 1.75rem;
}

.hero-live .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--savings);
    box-shadow: 0 0 0 0 rgba(21, 128, 61, 0.5);
    animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(21, 128, 61, 0.55); }
    70%  { box-shadow: 0 0 0 8px rgba(21, 128, 61, 0); }
    100% { box-shadow: 0 0 0 0 rgba(21, 128, 61, 0); }
}

/* Wrapper sätter bara höjden (och centrerar via parent text-align: center).
   Bredden anpassas efter loggans naturliga proportioner — inget vitt kort,
   ingen ram, så irreguljära logo-former läses direkt mot hero-bakgrunden. */
.hero-logo {
    display: inline-block;
    height: 104px;
    margin: 0 auto 1.5rem;
    line-height: 0;     /* hindrar baseline-gap under img */
}

.hero-logo img {
    height: 100%;
    width: auto;
    display: block;
    max-width: 360px;   /* säkerhetstak för extremt breda loggor */
    object-fit: contain;
}

/* Fallback (när butiken saknar logga) — fortsatt fast kvadrat med
   Profit-gradient och initial. Står på egen bg, så vi måste lägga
   tillbaka skuggan och radien här. */
.hero-logo-fallback {
    width: 104px;
    height: 104px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--brand), var(--brand-deep));
    color: #fff;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

.hero h1 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2rem, 3.6vw + 0.5rem, 3.2rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 0.85rem;
    color: var(--brand-deep);
    font-variation-settings: "opsz" 144;
}

.hero-tagline {
    font-size: 1.1rem;
    color: var(--text-soft);
    max-width: 38rem;
    margin: 0 auto;
    line-height: 1.6;
}

.hero-tagline em {
    font-style: italic;
    font-family: var(--font-display);
    color: var(--accent);
    font-weight: 500;
}

/* ===== Trust-strip (editorial KPI-rad) ==================== */

.trust-strip {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    margin: -2rem auto 3.5rem;
    box-shadow: var(--shadow-lg);
    max-width: 760px;
    padding: 1.5rem 2rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.trust-divider {
    width: 1px;
    height: 44px;
    background: var(--border);
    justify-self: center;
}

.trust-cell { text-align: center; }

.trust-value {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 2rem;
    color: var(--brand-deep);
    letter-spacing: -0.02em;
    line-height: 1;
    font-variation-settings: "opsz" 144;
}

.trust-value .unit {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-left: 0.3rem;
    letter-spacing: 0;
}

.trust-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
    font-weight: 600;
}

@media (max-width: 640px) {
    .trust-strip {
        grid-template-columns: 1fr;
        padding: 1.25rem;
    }
    .trust-divider { width: 60%; height: 1px; justify-self: center; }
}

/* ===== Section heading =================================== */

.section { margin-top: 3.5rem; }

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 1.75rem;
    gap: 1rem;
}

.section-head .eyebrow {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent);
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.section-head h2 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.85rem;
    color: var(--brand-deep);
    margin: 0;
    letter-spacing: -0.02em;
    font-variation-settings: "opsz" 96;
}

.section-head .section-aside {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    font-family: var(--font-display);
}

/* ===== Search ============================================ */

.search-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    padding: 0.6rem 0.6rem 0.6rem 1.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-md);
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}

.search-box:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 5px var(--brand-glow), var(--shadow-lg);
    transform: translateY(-1px);
}

.search-box i.fa-magnifying-glass {
    color: var(--brand);
    font-size: 1.1rem;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1.1rem;
    color: var(--text);
    padding: 0.7rem 0;
    min-width: 0;
    font-family: inherit;
}

.search-input::placeholder { color: var(--text-faint); }

.search-submit {
    background: var(--brand);
    color: #fff;
    border-radius: var(--r-pill);
    padding: 0.75rem 1.4rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.15s, transform 0.15s;
    box-shadow: 0 2px 8px rgba(35, 76, 65, 0.25);
}

.search-submit:hover { background: var(--brand-deep); transform: translateY(-1px); }
.search-submit:active { transform: translateY(0); }

.search-suggestions {
    margin-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.search-suggestions .label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-style: italic;
    font-family: var(--font-display);
    margin-right: 0.25rem;
}

.chip {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    padding: 0.4rem 0.95rem;
    font-size: 0.85rem;
    color: var(--text-soft);
    font-weight: 500;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.chip:hover {
    background: var(--brand-soft);
    border-color: var(--brand);
    color: var(--brand-deep);
}

/* ===== Sökresultat ======================================= */

/* .search-anchor är relative-positionerad så rullgardinen kan absolut-positioneras
   direkt under sökrutan (inte under hela search-section, som även innehåller
   konkurrentväljaren ovanför). Annars hade dropdownen hamnat långt nedanför. */
.search-anchor { position: relative; }

.search-spinner {
    color: var(--text-faint);
    font-size: 1rem;
    margin-right: 0.6rem;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.75rem;
    z-index: 50;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    max-height: 460px;
    overflow-y: auto;
}

.search-result {
    width: 100%;
    background: none;
    border: none;
    border-bottom: 1px solid var(--border);
    padding: 0.9rem 1.25rem;
    text-align: left;
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 1rem;
    align-items: center;
    cursor: pointer;
    transition: background 0.15s;
}

.result-thumb {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand-soft), #c8d8d0);
    overflow: hidden;
    flex-shrink: 0;
}

.result-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
    display: block;
}

.search-result:last-child { border-bottom: none; }
.search-result:hover:not(:disabled) { background: var(--bg-warm); }
.search-result:disabled { opacity: 0.6; cursor: default; }

.search-result.in-cart .result-action { color: var(--savings); }

.result-info { min-width: 0; }
.result-name {
    font-weight: 600;
    color: var(--text);
    font-size: 0.98rem;
    line-height: 1.3;
}
.result-meta {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.result-prices { text-align: right; }
.result-our {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--text);
}
.result-saving {
    font-size: 0.8rem;
    color: var(--savings-strong);
    background: var(--savings-bg);
    border-radius: var(--r-pill);
    padding: 0.1rem 0.55rem;
    margin-top: 0.3rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.result-saving i { font-size: 0.65rem; }
.result-loss {
    font-size: 0.8rem;
    background: #fde2d4;
    color: #9a3412;
    border-radius: var(--r-pill);
    padding: 0.1rem 0.55rem;
    margin-top: 0.3rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.result-loss i { font-size: 0.65rem; }

.result-action {
    width: 36px;
    height: 36px;
    border-radius: var(--r-pill);
    background: var(--brand-soft);
    color: var(--brand);
    display: grid;
    place-items: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.shopping-loading {
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
}

/* ===== Konkurrentväljare ================================= */

.competitor-selector {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.competitor-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-family: var(--font-display);
    font-style: italic;
    margin-right: 0.25rem;
}

.competitor-chip {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    padding: 0.45rem 1.1rem;
    font-size: 0.9rem;
    color: var(--text-soft);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.competitor-chip:hover {
    background: var(--bg-warm);
    border-color: var(--border-strong);
}

.competitor-chip.active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    box-shadow: 0 2px 8px rgba(35, 76, 65, 0.25);
}

/* ===== Saving-pill loss-variant + text-faint ============= */

.saving-pill.loss {
    background: #fde2d4;
    color: #9a3412;
}

.text-faint { color: var(--text-faint); }

/* ===== Mappad-vara-markör (*) ============================ */

/* Inline-* för sökresultat — bara visuellt, ingen popup där (dropdownen
   har egen overflow så popup blir trasig). */
.mapped-marker-inline {
    color: var(--accent);
    font-weight: 700;
    margin-left: 0.2rem;
}

/* Mapped-cell wrapper runt priset + asterisken i kassetabellen.
   Hover triggas på hela ytan (inte bara *) så användaren slipper sikta. */
.mapped-cell {
    position: relative;
    display: inline-block;
    cursor: help;
}

.mapped-asterisk {
    color: var(--accent);
    font-weight: 700;
    margin-left: 0.15rem;
}

.mapped-popup {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 220px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-lg);
    padding: 0.85rem;
    z-index: 100;
    text-align: left;
    font-weight: normal;
    color: var(--text);
    font-variant-numeric: normal;
    /* Liten "tail" mot priset så det syns var den hör hemma */
    pointer-events: auto;
}

.mapped-cell:hover .mapped-popup,
.mapped-cell:focus-within .mapped-popup {
    display: block;
}

.mapped-popup img {
    width: 100%;
    height: 110px;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 0.55rem;
    display: block;
}

.mapped-popup-name {
    font-weight: 600;
    color: var(--text);
    font-size: 0.92rem;
    line-height: 1.3;
}

.mapped-popup-brand {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* Fotnot under cart-summary när någon rad är mappad. */
.cart-footnote {
    padding: 0.85rem 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    font-style: italic;
}

.cart-footnote .footnote-marker {
    color: var(--accent);
    font-weight: 700;
    font-style: normal;
    margin: 0 0.1rem;
}

/* Töm-listan-knapp i section-aside */
.cart-clear-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-family: var(--font-body);
    font-style: normal;
    margin-left: 0.75rem;
    padding: 0.3rem 0.65rem;
    border-radius: var(--r-pill);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.cart-clear-btn:hover {
    background: #fde2e2;
    color: #b91c1c;
}

.cart-clear-btn i { margin-right: 0.3rem; }

/* ===== Färdiga listor — bildknappar ====================== */

.list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1.25rem;
}

/* Knapp-stil. Mjuk pastell-gradient som primär färgsignal — ingen bild-yta,
   ingen ikon. Titeln är huvudfokus. Färgtemat per kort kommer från is-*-
   klasserna nedan. */
.list-card {
    background: linear-gradient(135deg, #fdf5e6 0%, #f0eadb 100%);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 1.4rem 1.5rem;
    text-align: left;
    width: 100%;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
    box-shadow: var(--shadow-sm);
}

.list-card:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}

.list-card:disabled {
    opacity: 0.65;
    cursor: default;
    transform: none;
}

/* Per-tema gradient — håller färgerna pastellljusa så mörk text alltid läses */
.list-card.is-dinner { background: linear-gradient(135deg, #fdf2dd 0%, #f0d6a8 100%); }
.list-card.is-coffee { background: linear-gradient(135deg, #f6eddc 0%, #e4cfa8 100%); }
.list-card.is-family { background: linear-gradient(135deg, #ecf2e0 0%, #c8dcb0 100%); }
.list-card.is-grill  { background: linear-gradient(135deg, #fce5d4 0%, #f3c5a0 100%); }

.list-card-title {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--brand-deep);
    margin: 0;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.list-card-meta {
    color: var(--brand-deep);
    opacity: 0.65;
    font-size: 0.9rem;
    margin-top: 0.45rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== Min lista (jämförelsetabell) ====================== */

.cart-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-md);
    /* INGEN overflow: hidden — hover-popupen för *-markerade rader måste kunna
       sticka ut utanför kortets botten. Rundade hörn hanteras nu manuellt på
       thead-cellerna och cart-summary. */
}

/* Manuella rundade hörn nu när cart-card inte clippar */
.cart-table thead tr:first-child th:first-child { border-top-left-radius: var(--r-md); }
.cart-table thead tr:first-child th:last-child  { border-top-right-radius: var(--r-md); }

.cart-empty {
    padding: 4rem 1.5rem;
    text-align: center;
    color: var(--text-muted);
}

.cart-empty .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.cart-empty p {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.05rem;
    margin: 0;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table thead th {
    text-align: left;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 700;
    padding: 1rem 1.5rem;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
}

.cart-table thead th.num { text-align: right; }
.cart-table thead th.act { width: 1%; }

.cart-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}

.cart-table tbody tr:last-child { border-bottom: none; }
.cart-table tbody tr:hover { background: var(--bg-warm); }

.cart-table td {
    padding: 1.1rem 1.5rem;
    vertical-align: middle;
}

.cart-table td.num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    color: var(--text);
    font-weight: 500;
    font-size: 1rem;
}

.cart-table td.num.compare {
    color: var(--text-muted);
}

.product-cell { display: flex; align-items: center; gap: 0.95rem; }

.product-thumb {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand-soft), #c8d8d0);
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    line-height: 1;
    flex-shrink: 0;
    overflow: hidden;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
    display: block;
}

.product-name {
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
    font-size: 0.98rem;
}

.product-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.saving-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--savings-bg);
    color: var(--savings-strong);
    border-radius: var(--r-pill);
    padding: 0.3rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.saving-pill i { font-size: 0.7rem; }

.row-remove {
    width: 34px;
    height: 34px;
    border-radius: var(--r-pill);
    color: var(--text-faint);
    transition: background 0.15s, color 0.15s;
    display: grid;
    place-items: center;
    font-size: 1rem;
}

.row-remove:hover { background: #fde2e2; color: #b91c1c; }

/* ===== Summary med besparingsbar ========================= */

.cart-summary {
    background: linear-gradient(135deg, var(--bg-warm), var(--bg-soft));
    padding: 1.75rem 1.75rem 1.5rem;
    border-top: 1px solid var(--border-strong);
}

.summary-bar {
    margin-bottom: 1.5rem;
}

.summary-bar-track {
    height: 14px;
    background: var(--border);
    border-radius: var(--r-pill);
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.06);
}

.summary-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--brand), var(--savings));
    border-radius: var(--r-pill);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.summary-bar-legend {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.summary-totals {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.summary-block {
    padding: 0.5rem 0;
}

.summary-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 700;
}

.summary-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--brand-deep);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-top: 0.3rem;
    font-variation-settings: "opsz" 144;
}

.summary-value.savings { color: var(--savings); }
.summary-value.loss { color: #9a3412; }

.summary-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    font-variant-numeric: tabular-nums;
}

.summary-sub strong { color: var(--text-soft); font-weight: 600; }

/* Mobil: tabell blir kort */

@media (max-width: 720px) {
    .cart-table thead { display: none; }

    .cart-table tbody tr {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "product action"
            "prices  prices";
        padding: 1.1rem 1.25rem;
        gap: 0.5rem 1rem;
    }

    .cart-table td { padding: 0; border: none; }
    .cart-table td.col-product { grid-area: product; }
    .cart-table td.col-action  { grid-area: action; }
    .cart-table td.col-prices {
        grid-area: prices;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        padding-top: 0.6rem;
        border-top: 1px dashed var(--border);
    }

    .cart-table td.col-compare { display: none; }

    .summary-totals { grid-template-columns: 1fr; }
}

/* ===== Footer ============================================ */

.page-footer {
    border-top: 1px solid var(--border);
    padding: 2.5rem 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
    margin-top: 5rem;
}

.page-footer .brand {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--brand);
    font-weight: 500;
}

.page-footer p { margin: 0 0 0.5rem; }
.page-footer .tiny { font-size: 0.75rem; color: var(--text-faint); }

/* ===== Landningssida ===================================== */

.landing {
    flex: 1;
    display: grid;
    place-items: center;
    padding: 4rem 1.5rem;
    text-align: center;
}

.landing h1 {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--brand-deep);
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}

.landing p {
    color: var(--text-soft);
    max-width: 32rem;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* ===== 404 =============================================== */

.notfound {
    display: grid;
    place-items: center;
    padding: 6rem 1.5rem;
    text-align: center;
}

.notfound .icon {
    font-size: 3.5rem;
    margin-bottom: 1.25rem;
    line-height: 1;
}

.notfound h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--brand-deep);
    margin: 0 0 0.75rem;
}

.notfound p { color: var(--text-soft); max-width: 28rem; font-size: 1.05rem; }
