/* ═══════════════════════════════════════════════════
   Næste uges avis — styling med SparePosen-tema
   ═══════════════════════════════════════════════════ */

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

body.page-naeste-uge-avis {
    font-family: 'Outfit', sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

body.page-naeste-uge-avis .hdr,
body.page-naeste-uge-avis .hero,
body.page-naeste-uge-avis .fallback-box,
body.page-naeste-uge-avis .andre-wrap,
body.page-naeste-uge-avis .wrap,
body.page-naeste-uge-avis footer {
    position: relative;
    z-index: 1;
}

/* ── Layout (bevaret fra original) ── */
.page-naeste-uge-avis .hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}

.page-naeste-uge-avis .btn-back {
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
    border-radius: 999px;
    padding: 7px 15px;
    text-decoration: none;
    white-space: nowrap;
}

.page-naeste-uge-avis .hero {
    /* Nulstil global .hero fra style.css (min-height 100vh + centrering) */
    min-height: 0;
    display: block;
    text-align: left;
    align-items: unset;
    justify-content: unset;
    padding: 10px 16px 4px;
    max-width: 680px;
    margin: 0 auto;
}

.page-naeste-uge-avis .badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 6px;
}

.page-naeste-uge-avis .hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    line-height: 1.2;
}

.page-naeste-uge-avis .hero-meta {
    font-size: 0.82rem;
    margin-top: 4px;
    line-height: 1.4;
}

.page-naeste-uge-avis .fallback-box {
    max-width: 680px;
    margin: 0 auto 10px;
    padding: 0 16px;
}

.page-naeste-uge-avis .fallback-indre {
    padding: 16px 18px;
}

.page-naeste-uge-avis .fallback-indre h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    margin-bottom: 6px;
    line-height: 1.35;
}

.page-naeste-uge-avis .fallback-indre p {
    font-size: 0.86rem;
    line-height: 1.5;
}

.page-naeste-uge-avis .fallback-indre p + p {
    margin-top: 6px;
}

.page-naeste-uge-avis .andre-wrap {
    max-width: 680px;
    margin: 0 auto 6px;
    padding: 0 16px;
}

.page-naeste-uge-avis .andre-label {
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.page-naeste-uge-avis .pills {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.page-naeste-uge-avis .avis-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 999px;
    padding: 5px 13px 5px 10px;
    text-decoration: none;
    transition: all 0.15s;
}

.page-naeste-uge-avis .avis-pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.page-naeste-uge-avis .avis-pill--klar {
    background: #edf8f0;
    border: 1.5px solid #0B7A3E;
    color: #0B5A2E;
}

.page-naeste-uge-avis .avis-pill--klar .avis-pill-dot { background: #0B7A3E; }
.page-naeste-uge-avis .avis-pill--klar:hover { background: #dff3e4; }

.page-naeste-uge-avis .avis-pill--venter {
    background: #fff8f0;
    border: 1.5px solid #D97706;
    color: #9A5B00;
}

.page-naeste-uge-avis .avis-pill--venter .avis-pill-dot { background: #D97706; }
.page-naeste-uge-avis .avis-pill--venter:hover { background: #ffedd5; }

.page-naeste-uge-avis .avis-pill.active {
    box-shadow: 0 0 0 2px rgba(11, 122, 62, 0.18);
    font-weight: 700;
}

.page-naeste-uge-avis .avis-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 0.72rem;
    margin-top: 6px;
}

.page-naeste-uge-avis .avis-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.page-naeste-uge-avis .wrap {
    max-width: 680px;
    margin: 16px auto 0;
    padding: 0 16px 40px;
}

.page-naeste-uge-avis .tilbud-liste {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1px;
    overflow: hidden;
}

.page-naeste-uge-avis .tilbud-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
}

.page-naeste-uge-avis .tilbud-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
}

.page-naeste-uge-avis .tilbud-img-placeholder {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.page-naeste-uge-avis .tilbud-tekst {
    flex: 1;
    min-width: 0;
}

.page-naeste-uge-avis .tilbud-navn {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.3;
}

.page-naeste-uge-avis .tilbud-desc {
    font-size: 0.78rem;
    margin-top: 2px;
    line-height: 1.35;
}

.page-naeste-uge-avis .tilbud-pris {
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.page-naeste-uge-avis .site-indskud {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    margin: 8px 0;
    cursor: default;
    border-radius: var(--radius, 16px);
}

.page-naeste-uge-avis .site-indskud-ikon {
    font-size: 1.6rem;
    flex-shrink: 0;
    line-height: 1;
}

.page-naeste-uge-avis .site-indskud-tekst {
    flex: 1;
    min-width: 0;
}

.page-naeste-uge-avis .site-indskud-besked {
    font-size: 0.82rem;
    line-height: 1.45;
    margin-bottom: 4px;
}

.page-naeste-uge-avis .site-indskud-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.15s;
}

.page-naeste-uge-avis .site-indskud-link:hover {
    opacity: 0.75;
}

.page-naeste-uge-avis .site-indskud-link svg {
    opacity: 0.6;
}

.page-naeste-uge-avis .lb-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    align-items: flex-end;
    justify-content: center;
}

.page-naeste-uge-avis .lb-overlay.aaben {
    display: flex;
    animation: lb-fade 0.18s ease;
}

@keyframes lb-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.page-naeste-uge-avis .lb-kort {
    border-radius: 20px 20px 0 0;
    padding: 0 0 env(safe-area-inset-bottom, 16px);
    width: 100%;
    max-width: 520px;
    max-height: 90dvh;
    overflow-y: auto;
    animation: lb-up 0.22s cubic-bezier(0.32, 1.1, 0.6, 1);
}

@keyframes lb-up {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.page-naeste-uge-avis .lb-handle {
    width: 40px;
    height: 4px;
    border-radius: 99px;
    margin: 12px auto 0;
}

.page-naeste-uge-avis .lb-indhold {
    padding: 16px 20px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.page-naeste-uge-avis .lb-billede {
    width: 160px;
    height: 160px;
    object-fit: contain;
    border-radius: 16px;
}

.page-naeste-uge-avis .lb-billede-placeholder {
    width: 160px;
    height: 160px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.page-naeste-uge-avis .lb-tekst {
    width: 100%;
    text-align: center;
}

.page-naeste-uge-avis .lb-navn {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 6px;
}

.page-naeste-uge-avis .lb-desc {
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 12px;
}

.page-naeste-uge-avis .lb-pris {
    font-size: 1.6rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.page-naeste-uge-avis .lb-pris small {
    font-size: 0.9rem;
    font-weight: 400;
}

.page-naeste-uge-avis .lb-luk {
    margin-top: 8px;
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

/* ── Footer (overstyr theme-market + global footer) ── */
html.theme-market body.page-naeste-uge-avis footer,
body.page-naeste-uge-avis footer {
    background: #071810;
    border-top: none;
    color: rgba(255, 255, 255, 0.88);
    margin-top: 1rem;
    padding: 20px 16px;
    text-align: center;
    font-size: 0.8rem;
}

html.theme-market body.page-naeste-uge-avis footer p,
body.page-naeste-uge-avis footer p {
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
}

html.theme-market body.page-naeste-uge-avis footer a,
body.page-naeste-uge-avis footer a {
    color: #9AE8B0;
    font-weight: 600;
    text-decoration: none;
}

html.theme-market body.page-naeste-uge-avis footer a:hover,
body.page-naeste-uge-avis footer a:hover {
    color: #C4F5D2;
    text-decoration: underline;
}

@media (max-width: 380px) {
    .page-naeste-uge-avis .tilbud-img,
    .page-naeste-uge-avis .tilbud-img-placeholder {
        width: 44px;
        height: 44px;
    }

    .page-naeste-uge-avis .lb-billede,
    .page-naeste-uge-avis .lb-billede-placeholder {
        width: 130px;
        height: 130px;
    }
}

/* ── Tema (Market Fresh) ── */
.page-naeste-uge-avis .hdr {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 3px solid var(--accent);
    box-shadow: 0 6px 24px rgba(7, 24, 16, 0.07);
    backdrop-filter: blur(20px) saturate(1.4);
    padding: 0 1rem;
    height: 52px;
}

.page-naeste-uge-avis .hdr .logo img {
    display: block;
    height: 30px;
}

.page-naeste-uge-avis .btn-back {
    background: linear-gradient(135deg, var(--accent) 0%, #0E9B4F 100%);
    box-shadow: 0 4px 14px var(--accent-glow);
    transition: all 0.18s;
}

.page-naeste-uge-avis .btn-back:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px var(--accent-glow);
}

/* ── Hero ── */
.page-naeste-uge-avis .badge {
    background: var(--accent);
    color: #fff;
    border: none;
}

.page-naeste-uge-avis .hero h1 {
    color: var(--text);
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
}

.page-naeste-uge-avis .hero h1 .hero-datoer {
    color: var(--accent);
}

.page-naeste-uge-avis .hero-meta {
    color: var(--text-muted);
}

/* ── Fallback ── */
.page-naeste-uge-avis .fallback-indre {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius, 16px);
    box-shadow: var(--shadow-card, 0 4px 18px rgba(7, 24, 16, 0.08));
}

.page-naeste-uge-avis .fallback-indre h2 {
    color: var(--text);
}

.page-naeste-uge-avis .fallback-indre p {
    color: var(--text-muted);
}

.page-naeste-uge-avis .btn-primary {
    display: block;
    margin-top: 10px;
    padding: 11px 22px;
    background: linear-gradient(135deg, var(--accent) 0%, #0E9B4F 100%);
    color: #fff;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 14px var(--accent-glow);
    transition: all 0.18s;
    width: 100%;
    text-align: center;
}

.page-naeste-uge-avis .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px var(--accent-glow);
}

/* ── Andre butikker ── */
.page-naeste-uge-avis .andre-label {
    color: var(--text-muted);
}

.page-naeste-uge-avis .avis-legend {
    color: var(--text-muted);
}

/* ── Tilbudsliste ── */
.page-naeste-uge-avis .tilbud-liste {
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius, 16px);
    box-shadow: var(--shadow-card, 0 4px 18px rgba(7, 24, 16, 0.08));
}

.page-naeste-uge-avis .tilbud-item {
    background: var(--bg-card);
    cursor: pointer;
    transition: background 0.15s;
}

.page-naeste-uge-avis .tilbud-item:hover {
    background: var(--bg-card-hover);
}

.page-naeste-uge-avis .tilbud-item:active {
    background: var(--accent-dim);
}

.page-naeste-uge-avis .tilbud-img {
    background: var(--bg);
}

.page-naeste-uge-avis .tilbud-img-placeholder {
    background: var(--accent-dim);
}

.page-naeste-uge-avis .tilbud-desc {
    color: var(--text-muted);
}

.page-naeste-uge-avis .tilbud-pris {
    color: var(--accent);
}

.page-naeste-uge-avis .tilbud-pris small {
    color: var(--text-muted);
}

/* ── Søstersite-indskud ── */
.page-naeste-uge-avis .site-indskud {
    background: var(--orange-dim);
    border: 1px solid var(--border);
}

.page-naeste-uge-avis .site-indskud-besked {
    color: var(--text-muted);
}

.page-naeste-uge-avis .site-indskud-link {
    color: var(--accent);
}

/* ── Lightbox ── */
.page-naeste-uge-avis .lb-overlay {
    background: rgba(7, 24, 16, 0.55);
}

.page-naeste-uge-avis .lb-kort {
    background: var(--bg-card);
    border-top: 3px solid var(--accent);
}

.page-naeste-uge-avis .lb-handle {
    background: var(--border);
}

.page-naeste-uge-avis .lb-billede {
    background: var(--bg);
}

.page-naeste-uge-avis .lb-billede-placeholder {
    background: var(--accent-dim);
}

.page-naeste-uge-avis .lb-desc {
    color: var(--text-muted);
}

.page-naeste-uge-avis .lb-pris {
    color: var(--accent);
}

.page-naeste-uge-avis .lb-pris small {
    color: var(--text-muted);
}

.page-naeste-uge-avis .lb-luk {
    background: var(--accent-dim);
    border: 1px solid var(--border);
    color: var(--text-dim);
}

.page-naeste-uge-avis .lb-luk:hover {
    background: var(--bg-card-hover);
}

