/* ==========================================================================
   Repix hovedbutikk — nye.repix.no
   Norgesprofil-inspirert layout med Repix-farger.
   Juster merkevarefargene i :root under — alt annet følger etter.
   ========================================================================== */

:root {
    /* Merkevare — rød temafarge + grønn Repix-logo */
    --accent: #54C4A4;         /* logo-grønn — brukes kun logonært (favicon, logo-prikk) */
    --brand: #E2001A;          /* rød — knapper, lenker, badges */
    --brand-dark: #B50015;
    --brand-soft: #FDECEE;

    /* Nøytrale */
    --ink: #151A24;            /* mørk marine/nesten svart (header/footer) */
    --ink-2: #1F2734;
    --text: #232936;
    --muted: #6B7280;
    --line: #E5E8ED;
    --bg: #FFFFFF;
    --surface: #F5F6F8;
    --surface-2: #EDEFF2;

    /* Status */
    --success: #17803D;
    --success-soft: #E7F6EC;
    --danger: #C62828;
    --danger-soft: #FDECEA;

    --radius: 10px;
    --radius-lg: 16px;
    --shadow: 0 1px 2px rgba(21, 26, 36, .06), 0 8px 24px rgba(21, 26, 36, .07);
    --shadow-sm: 0 1px 3px rgba(21, 26, 36, .08);

    --container: 1240px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ── Grunnlag ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

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

a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.section { padding: 56px 0; }
.section--tight { padding: 36px 0; }
.section--surface { background: var(--surface); }

/* ── Knapper ──────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius);
    border: 2px solid transparent;
    font-family: var(--font);
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); color: #fff; }

.btn-outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--surface-2); color: var(--ink); }

.btn-lg { padding: 15px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }

.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ── Toppstripe ───────────────────────────────────────────────────────── */
.topbar {
    background: var(--ink);
    color: rgba(255, 255, 255, .85);
    font-size: .82rem;
}
.topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 36px;
}
.topbar a { color: rgba(255, 255, 255, .85); }
.topbar a:hover { color: #fff; }
.topbar-contact { display: flex; gap: 18px; align-items: center; }
.topbar-usp { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.topbar-usp svg { width: 14px; height: 14px; }

.vat-toggle { display: flex; align-items: center; gap: 6px; }
.vat-toggle span { color: rgba(255, 255, 255, .55); }
.vat-toggle a {
    padding: 3px 10px;
    border-radius: 999px;
    font-weight: 600;
    color: rgba(255, 255, 255, .75);
    border: 1px solid rgba(255, 255, 255, .2);
}
.vat-toggle a:hover { color: #fff; border-color: rgba(255, 255, 255, .5); }
.vat-toggle a.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ── Header ───────────────────────────────────────────────────────────── */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.site-header .container {
    display: flex;
    align-items: center;
    gap: 28px;
    padding-top: 16px;
    padding-bottom: 16px;
}

.logo { display: flex; align-items: center; gap: 2px; font-weight: 900; font-size: 1.7rem; letter-spacing: -.03em; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo .logo-dot { color: var(--accent); }
.logo img { height: 36px; width: auto; display: block; }
.logo-tagline { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: -2px; }

.header-search { flex: 1; max-width: 560px; }
.header-search form { display: flex; position: relative; }
.header-search input {
    width: 100%;
    padding: 12px 48px 12px 16px;
    border: 2px solid var(--line);
    border-radius: 999px;
    font-family: var(--font);
    font-size: .95rem;
    outline: none;
    transition: border-color .15s ease;
    background: var(--surface);
}
.header-search input:focus { border-color: var(--ink); background: #fff; }
.header-search button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--brand);
    color: #fff;
    border: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
}
.header-search button:hover { background: var(--brand-dark); }
.header-search svg { width: 16px; height: 16px; }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.cart-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: var(--radius);
    background: var(--surface);
    font-weight: 700;
    font-size: .92rem;
    color: var(--ink);
    border: 2px solid transparent;
    transition: border-color .15s ease;
}
.cart-button:hover { border-color: var(--ink); color: var(--ink); }
.cart-button svg { width: 20px; height: 20px; }
.cart-count {
    position: absolute;
    top: -7px;
    right: -7px;
    background: var(--brand);
    color: #fff;
    font-size: .7rem;
    font-weight: 800;
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    padding: 0 5px;
}

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 26px; height: 26px; color: var(--ink); }

/* ── Hovedmeny ────────────────────────────────────────────────────────── */
.main-nav { background: var(--ink); }
.main-nav .container { display: flex; align-items: stretch; gap: 0; padding: 0 20px; }
.main-nav a {
    color: rgba(255, 255, 255, .88);
    font-weight: 600;
    font-size: .92rem;
    padding: 13px 16px;
    position: relative;
    white-space: nowrap;
}
.main-nav a:hover { color: #fff; }
.main-nav a::after {
    content: '';
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 0;
    height: 3px;
    background: var(--brand);
    transform: scaleX(0);
    transition: transform .15s ease;
}
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }

/* ── Flash-meldinger ──────────────────────────────────────────────────── */
.flash { padding: 13px 18px; border-radius: var(--radius); margin: 18px 0 0; font-weight: 600; font-size: .95rem; }
.flash-success { background: var(--success-soft); color: var(--success); }
.flash-error { background: var(--danger-soft); color: var(--danger); }
.flash ul { margin: 0; padding-left: 18px; font-weight: 500; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
    background: linear-gradient(120deg, var(--ink) 0%, #253048 78%, #2C3A57 100%);
    color: #fff;
    overflow: hidden;
    position: relative;
}
.hero::after {
    content: '';
    position: absolute;
    right: -140px;
    top: -140px;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(226, 0, 26, .35), transparent 65%);
    pointer-events: none;
}
.hero .container {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 48px;
    align-items: center;
    padding-top: 72px;
    padding-bottom: 72px;
    position: relative;
    z-index: 1;
}
.hero h1 { color: #fff; margin-bottom: .4em; }
.hero p { color: rgba(255, 255, 255, .78); font-size: 1.12rem; max-width: 46ch; }
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 20px;
}
.hero-eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.hero-actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }

.hero-panel {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--radius-lg);
    padding: 26px;
    backdrop-filter: blur(4px);
}
.hero-panel h3 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.hero-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.hero-panel li { display: flex; gap: 10px; align-items: flex-start; color: rgba(255, 255, 255, .85); font-size: .96rem; }
.hero-panel li svg { width: 18px; height: 18px; color: var(--brand); flex-shrink: 0; margin-top: 3px; }

/* ── USP-rad ──────────────────────────────────────────────────────────── */
.usps { border-bottom: 1px solid var(--line); background: #fff; }
.usps .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    padding-top: 22px;
    padding-bottom: 22px;
}
.usp { display: flex; align-items: center; gap: 13px; }
.usp-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--brand-soft);
    color: var(--brand);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.usp-icon svg { width: 22px; height: 22px; }
.usp strong { display: block; font-size: .95rem; color: var(--ink); }
.usp span { font-size: .82rem; color: var(--muted); }

/* ── Seksjonshoder ────────────────────────────────────────────────────── */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section-head p { color: var(--muted); margin: 0; }
.section-link { font-weight: 700; color: var(--brand); font-size: .95rem; white-space: nowrap; }
.section-link:hover { color: var(--brand-dark); }

/* ── Kategori-fliser ──────────────────────────────────────────────────── */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-tile {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--ink-2);
    aspect-ratio: 4 / 3;
    display: block;
}
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.cat-tile:hover img { transform: scale(1.045); }
.cat-tile-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--ink-2), #33405C);
}
.cat-tile-placeholder svg { width: 44px; height: 44px; color: rgba(255, 255, 255, .35); }
.cat-tile-label {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 34px 16px 14px;
    background: linear-gradient(transparent, rgba(15, 19, 27, .82));
    color: #fff;
    font-weight: 800;
    font-size: 1.02rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.cat-tile-label small { font-weight: 600; font-size: .78rem; color: rgba(255, 255, 255, .75); }

/* ── Produktkort ──────────────────────────────────────────────────────── */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.product-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; color: inherit; }

.product-card-image { background: #fff; height: 240px; display: flex; align-items: center; justify-content: center; padding: 18px; position: relative; overflow: hidden; }
.product-card-image img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; mix-blend-mode: multiply; }
.product-card-image .no-image { color: var(--surface-2); }
.product-card-image .no-image svg { width: 56px; height: 56px; }

.product-card-body { padding: 14px 16px 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; flex: 1; }
.product-card-brand { font-size: .74rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.product-card-name { font-weight: 700; font-size: .97rem; color: var(--ink); line-height: 1.35; }
.product-card-meta { font-size: .8rem; color: var(--muted); }
.product-card-price { margin-top: auto; padding-top: 8px; font-weight: 800; font-size: 1.05rem; color: var(--ink); }
.product-card-price small { font-weight: 600; color: var(--muted); font-size: .78rem; }

.badge-featured {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--brand);
    color: #fff;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
}

/* ── Infobånd ─────────────────────────────────────────────────────────── */
.info-band { background: var(--ink); color: #fff; border-radius: var(--radius-lg); overflow: hidden; }
.info-band-inner { display: grid; grid-template-columns: 1.2fr .8fr; }
.info-band-text { padding: 44px 48px; }
.info-band-text h2 { color: #fff; }
.info-band-text p { color: rgba(255, 255, 255, .75); max-width: 52ch; }
.info-band-visual {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    display: grid;
    place-items: center;
    padding: 30px;
}
.info-band-visual svg { width: 120px; height: 120px; color: rgba(255, 255, 255, .85); }

/* ── Kategori-chips (andre kategorier på kategorisider) ───────────────── */
.cat-chips { display: flex; flex-wrap: wrap; gap: 9px; margin: 4px 0 10px; }
.cat-chips a {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border: 2px solid var(--line);
    border-radius: 999px;
    font-size: .87rem;
    font-weight: 600;
    color: var(--ink);
    background: #fff;
    transition: border-color .15s ease, color .15s ease;
}
.cat-chips a:hover { border-color: var(--brand); color: var(--brand); }
.cat-chips a.active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }

.category-intro { max-width: 860px; margin: 6px 0 8px; }
.category-intro p, .category-intro li { color: var(--text); line-height: 1.7; }

/* ── Brødsmuler / verktøylinje ────────────────────────────────────────── */
.breadcrumbs { font-size: .85rem; color: var(--muted); margin: 20px 0 4px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs span { margin: 0 6px; color: var(--line); }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 18px 0 22px; flex-wrap: wrap; }
.toolbar-count { color: var(--muted); font-size: .92rem; }
.toolbar select {
    padding: 10px 14px;
    border: 2px solid var(--line);
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: .9rem;
    font-weight: 600;
    color: var(--ink);
    background: #fff;
    cursor: pointer;
}

.pagination-nav { display: flex; justify-content: center; gap: 10px; margin-top: 34px; }

/* ── Produktside ──────────────────────────────────────────────────────── */
.product-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; margin: 22px 0 50px; }

.gallery-main {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    height: min(520px, 85vw);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    overflow: hidden;
}
.gallery-main img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; mix-blend-mode: multiply; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumb {
    width: 72px;
    height: 72px;
    border: 2px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    padding: 6px;
    cursor: pointer;
    display: grid;
    place-items: center;
}
.gallery-thumb img { max-height: 100%; object-fit: contain; }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--ink); }

.pd-brand { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 6px; }
.pd-title { margin-bottom: 6px; }
.pd-sku { color: var(--muted); font-size: .85rem; margin-bottom: 16px; }
.pd-price { font-size: 1.9rem; font-weight: 900; color: var(--ink); margin: 10px 0 2px; }
.pd-price small { font-size: .95rem; font-weight: 600; color: var(--muted); }
.pd-vat { color: var(--muted); font-size: .84rem; margin-bottom: 20px; }

.option-label { font-weight: 700; font-size: .92rem; margin: 18px 0 9px; display: flex; justify-content: space-between; }
.option-label .selected-value { color: var(--muted); font-weight: 600; }

.swatches { display: flex; flex-wrap: wrap; gap: 9px; }
.swatch {
    border: 2px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    padding: 5px;
    width: 58px;
    height: 58px;
    cursor: pointer;
    display: grid;
    place-items: center;
    position: relative;
}
.swatch img { max-height: 100%; object-fit: contain; }
.swatch.active { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.swatch-text { width: auto; min-width: 46px; height: 42px; padding: 0 13px; font-size: .88rem; font-weight: 700; color: var(--ink); }
.swatch-text.active { border-color: var(--brand); color: var(--brand); }

.qty-row { display: flex; gap: 12px; margin-top: 22px; }
.qty-stepper { display: inline-flex; border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.qty-stepper button { width: 42px; border: 0; background: var(--surface); font-size: 1.15rem; font-weight: 700; cursor: pointer; color: var(--ink); }
.qty-stepper button:hover { background: var(--surface-2); }
.qty-stepper input { width: 58px; border: 0; text-align: center; font-family: var(--font); font-size: 1rem; font-weight: 700; outline: none; -moz-appearance: textfield; }
.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }

.upload-box {
    margin-top: 20px;
    border: 2px dashed var(--line);
    border-radius: var(--radius);
    padding: 16px 18px;
    background: var(--surface);
}
.upload-box:hover { border-color: var(--muted); }
.upload-box label { font-weight: 700; font-size: .92rem; display: flex; align-items: center; gap: 9px; cursor: pointer; color: var(--ink); }
.upload-box label svg { width: 20px; height: 20px; color: var(--brand); }
.upload-box small { display: block; color: var(--muted); margin-top: 5px; font-size: .8rem; }
.upload-box input[type=file] { margin-top: 9px; font-size: .85rem; width: 100%; }

.pd-accordions { margin-top: 30px; border-top: 1px solid var(--line); }
.pd-accordions details { border-bottom: 1px solid var(--line); }
.pd-accordions summary {
    padding: 15px 4px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--ink);
}
.pd-accordions summary::-webkit-details-marker { display: none; }
.pd-accordions summary::after { content: '+'; font-size: 1.3rem; font-weight: 400; color: var(--muted); }
.pd-accordions details[open] summary::after { content: '–'; }
.pd-accordions .acc-body { padding: 0 4px 17px; color: var(--text); font-size: .95rem; white-space: pre-line; }
.pd-accordions ul { margin: 0; padding-left: 20px; }

/* ── Handlekurv ───────────────────────────────────────────────────────── */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 34px; align-items: start; margin: 26px 0 50px; }

.cart-items { display: grid; gap: 14px; }
.cart-item {
    display: grid;
    grid-template-columns: 92px 1fr auto;
    gap: 18px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 16px;
}
.cart-item-image { width: 92px; height: 92px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); display: grid; place-items: center; padding: 8px; }
.cart-item-image img { max-height: 100%; object-fit: contain; }
.cart-item-name { font-weight: 700; color: var(--ink); }
.cart-item-meta { font-size: .84rem; color: var(--muted); }
.cart-item-meta .upload-tag { display: inline-flex; align-items: center; gap: 5px; background: var(--brand-soft); color: var(--brand); font-weight: 600; padding: 2px 9px; border-radius: 999px; font-size: .76rem; margin-top: 4px; }
.cart-item-right { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; }
.cart-item-price { font-weight: 800; color: var(--ink); }
.cart-remove { background: none; border: 0; color: var(--muted); font-size: .8rem; cursor: pointer; text-decoration: underline; font-family: var(--font); }
.cart-remove:hover { color: var(--danger); }

.summary-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 20px;
}
.summary-card h3 { margin-bottom: 16px; }
.summary-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: .95rem; }
.summary-row.muted { color: var(--muted); font-size: .87rem; }
.summary-total { border-top: 2px solid var(--ink); margin-top: 10px; padding-top: 13px; font-weight: 900; font-size: 1.2rem; display: flex; justify-content: space-between; color: var(--ink); }

.free-shipping-note {
    background: var(--success-soft);
    color: var(--success);
    font-size: .84rem;
    font-weight: 600;
    padding: 9px 13px;
    border-radius: var(--radius);
    margin-bottom: 13px;
}
.free-shipping-note.pending { background: var(--surface); color: var(--muted); }

.empty-state { text-align: center; padding: 70px 20px; }
.empty-state svg { width: 62px; height: 62px; color: var(--surface-2); margin: 0 auto 16px; }
.empty-state p { color: var(--muted); }

/* ── Kasse ────────────────────────────────────────────────────────────── */
.checkout-layout { display: grid; grid-template-columns: 1fr 400px; gap: 34px; align-items: start; margin: 26px 0 50px; }

.checkout-section { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; margin-bottom: 18px; }
.checkout-section h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.checkout-section h3 .step {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--ink); color: #fff;
    font-size: .85rem; font-weight: 800;
    display: grid; place-items: center;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }

.field label { display: block; font-weight: 600; font-size: .86rem; margin-bottom: 6px; color: var(--ink); }
.field input, .field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--line);
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: .95rem;
    outline: none;
    transition: border-color .15s ease;
    background: #fff;
}
.field input:focus, .field textarea:focus { border-color: var(--ink); }
.field .error { color: var(--danger); font-size: .8rem; margin-top: 4px; display: block; }

.radio-cards { display: grid; gap: 11px; }
.radio-card {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    border: 2px solid var(--line);
    border-radius: var(--radius);
    padding: 15px 17px;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
    background: #fff;
}
.radio-card:hover { border-color: var(--muted); }
.radio-card input { margin-top: 4px; accent-color: var(--brand); width: 17px; height: 17px; }
.radio-card:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.radio-card strong { display: block; color: var(--ink); font-size: .96rem; }
.radio-card span { color: var(--muted); font-size: .84rem; }
.radio-card .radio-price { margin-left: auto; font-weight: 800; color: var(--ink); white-space: nowrap; }

.firms-badge {
    display: inline-block;
    background: var(--ink);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 999px;
    margin-left: 6px;
    vertical-align: middle;
}
.firms-hint {
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-size: .86rem;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: var(--radius);
    margin: 0 0 12px;
}

.summary-items { display: grid; gap: 12px; margin-bottom: 16px; max-height: 320px; overflow-y: auto; }
.summary-item { display: flex; gap: 12px; align-items: center; font-size: .88rem; }
.summary-item-img { width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 8px; display: grid; place-items: center; padding: 4px; flex-shrink: 0; background: #fff; }
.summary-item-img img { max-height: 100%; object-fit: contain; }
.summary-item-name { font-weight: 600; color: var(--ink); line-height: 1.3; }
.summary-item-qty { color: var(--muted); font-size: .8rem; }
.summary-item-price { margin-left: auto; font-weight: 700; white-space: nowrap; }

/* ── Kontakt oss ──────────────────────────────────────────────────────── */
.contact-layout { display: grid; grid-template-columns: 1fr 360px; gap: 34px; align-items: start; margin: 26px 0 50px; }
.contact-layout .checkout-section { position: relative; margin-bottom: 0; }

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 13px; align-items: flex-start; font-size: .92rem; }
.contact-list strong { color: var(--ink); }
.contact-list a { color: var(--text); }
.contact-list a:hover { color: var(--brand); }

.product-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-size: .88rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
}
.product-chip svg { width: 15px; height: 15px; }
.product-chip a { color: var(--brand-dark); font-weight: 800; font-size: 1.05rem; line-height: 1; padding: 0 2px; }
.product-chip a:hover { color: var(--brand); }

.ask-box {
    margin-top: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 14px 17px;
    display: flex;
    align-items: center;
    gap: 13px;
}
.ask-box svg { width: 22px; height: 22px; color: var(--brand); flex-shrink: 0; }
.ask-box strong { display: block; color: var(--ink); font-size: .93rem; }
.ask-box span { color: var(--muted); font-size: .82rem; }
.ask-box .btn { margin-left: auto; }

@media (max-width: 1024px) {
    .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .ask-box { flex-wrap: wrap; }
    .ask-box .btn { margin-left: 0; width: 100%; }
    .header-contact .cart-label { display: none; }
}

/* ── Bekreftelse ──────────────────────────────────────────────────────── */
.confirm-hero { text-align: center; padding: 54px 20px 30px; }
.confirm-check {
    width: 74px; height: 74px; border-radius: 50%;
    background: var(--success-soft); color: var(--success);
    display: grid; place-items: center; margin: 0 auto 18px;
}
.confirm-check svg { width: 36px; height: 36px; }
.confirm-hero p { color: var(--muted); max-width: 54ch; margin: 0 auto 1em; }
.confirm-card { max-width: 720px; margin: 0 auto 60px; }

/* ── Innholdssider (Sider fra Nova) ───────────────────────────────────── */
.page-content { max-width: 820px; margin: 12px 0 30px; }
.page-content h1 { margin-bottom: .6em; }
.page-content h2 { margin-top: 1.6em; }
.page-content h3 { margin-top: 1.3em; }
.page-content p, .page-content li { font-size: 1rem; line-height: 1.75; }
.page-content ul, .page-content ol { padding-left: 24px; margin: 0 0 1em; }
.page-content img { border-radius: var(--radius); margin: 1em 0; }
.page-content a { color: var(--brand); text-decoration: underline; }
.page-content a:hover { color: var(--brand-dark); }
.page-content blockquote { border-left: 4px solid var(--brand); margin: 1.2em 0; padding: .3em 0 .3em 18px; color: var(--muted); }
.page-content table { border-collapse: collapse; width: 100%; margin: 1em 0; }
.page-content th, .page-content td { border: 1px solid var(--line); padding: 9px 13px; text-align: left; }
.page-content th { background: var(--surface); }
.page-content hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .75); margin-top: 60px; }
.footer-main {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 36px;
    padding: 52px 0 40px;
}
.footer-main h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 15px; }
.footer-main ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-main a { color: rgba(255, 255, 255, .75); font-size: .92rem; }
.footer-main a:hover { color: #fff; }
.footer-about p { font-size: .92rem; max-width: 34ch; }
.footer-logo { font-size: 1.5rem; font-weight: 900; color: #fff; letter-spacing: -.03em; margin-bottom: 10px; display: inline-block; }
.footer-logo .logo-dot { color: var(--accent); }
.footer-logo img { height: 30px; width: auto; display: block; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0; font-size: .82rem; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

/* ── Responsivt ───────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .cat-grid, .product-grid { grid-template-columns: repeat(3, 1fr); }
    .usps .container { grid-template-columns: repeat(2, 1fr); }
    .hero .container { grid-template-columns: 1fr; }
    .hero-panel { display: none; }
    .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
    .summary-card { position: static; }
    .product-layout { grid-template-columns: 1fr; gap: 28px; }
    .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    .topbar-usp { display: none; }
    .product-card-image { height: 170px; padding: 12px; }
    .site-header .container { flex-wrap: wrap; gap: 12px; }
    .header-search { order: 3; flex-basis: 100%; max-width: none; }
    .cat-grid, .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .usps .container { grid-template-columns: 1fr; }
    .nav-toggle { display: block; }
    .main-nav .container { display: none; flex-direction: column; padding: 8px 20px 14px; }
    .main-nav.open .container { display: flex; }
    .main-nav a { padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .07); }
    .main-nav a::after { display: none; }
    .info-band-inner { grid-template-columns: 1fr; }
    .info-band-visual { display: none; }
    .info-band-text { padding: 30px 26px; }
    .form-grid { grid-template-columns: 1fr; }
    .cart-item { grid-template-columns: 72px 1fr; }
    .cart-item-right { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
    .footer-main { grid-template-columns: 1fr; gap: 26px; }
    .section { padding: 38px 0; }
}
