/* EloLadeboks Frontend
   -------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ── Grid ─────────────────────────────────────────── */
.elb-grid        { display: grid; gap: 12px; margin: 16px 0 6px; }
.elb-cols-1      { grid-template-columns: 1fr; }
.elb-cols-2      { grid-template-columns: repeat(2, 1fr); }
.elb-cols-3      { grid-template-columns: repeat(3, 1fr); }

/* ── Disclaimer ───────────────────────────────────── */
.elb-disclaimer {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 12px;
    color: #94a3b8;
    margin: 6px 0 0;
    line-height: 1.5;
    text-align: center;
}
.elb-disclaimer a { color: #94a3b8; text-decoration: underline; text-underline-offset: 2px; }
.elb-disclaimer a:hover { color: #64748b; }

/* ── Kort ─────────────────────────────────────────── */
.elb-product-card {
    font-family: 'Inter', system-ui, sans-serif;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: visible;
    position: relative;
    transition: border-color .2s;
}
.elb-product-card:hover { border-color: #cbd5e1; }

/* ── Anbefalet badge ──────────────────────────────── */
.elb-badge-wrap {
    position: absolute;
    top: -12px;
    left: 14px;
    z-index: 2;
}
.elb-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #22c55e;
    color: #fff;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    padding: 4px 11px;
    border-radius: 20px;
}

/* ── Produkt: billede + navn ──────────────────────── */
.elb-product-top {
    display: flex;
    align-items: stretch;
    gap: 12px;
    padding: 14px 16px 12px;
    border-bottom: 1px solid #f1f5f9;
}

/* Billedeboks – ingen border-radius på billedet selv */
.elb-product-img-wrap {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    overflow: hidden;
    align-self: center;
}
.elb-product-img {
    max-width: 36px;
    max-height: 36px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 0 !important;
}

/* Titel + pills – fylder samme højde og fordeler sig snorlige */
.elb-product-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.elb-product-name {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -.02em;
}

/* Spec-pills */
.elb-product-desc {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.elb-spec {
    display: inline-flex;
    align-items: center;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: #475569;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    white-space: nowrap;
    line-height: 1.4;
}

/* ── Butikker ─────────────────────────────────────── */
.elb-butik-row-fe {
    display: grid;
    grid-template-columns: 160px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 5px 16px;
    border-bottom: 1px solid #f1f5f9;
    transition: background .12s;
}
.elb-butik-row-fe:last-child {
    border-bottom: none;
    border-radius: 0 0 12px 12px;
}
.elb-butik-row-fe:hover { background: #fafafa; }

/* Logo – ingen border-radius overhovedet */
.elb-butik-logo-fe { display: flex; align-items: center; }
.elb-butik-logo-img {
    max-width: 110px;
    max-height: 24px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 0 !important;
    opacity: .8;
    transition: opacity .15s;
}
.elb-butik-row-fe:hover .elb-butik-logo-img { opacity: 1; }

.elb-butik-name-fe {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

/* Pris */
.elb-butik-price-fe { text-align: right; }
.elb-price-prefix {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: #94a3b8;
    margin-right: 2px;
}
.elb-price-number {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -.03em;
}
.elb-price-unit {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: #94a3b8;
    margin-left: 2px;
}

/* CTA */
.elb-butik-cta-fe { text-align: right; }
.elb-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 13px;
    background: #22c55e;
    color: #fff !important;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 600;
    font-size: 12px;
    border-radius: 6px;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background .15s, transform .12s;
    border: none;
    cursor: pointer;
    letter-spacing: .01em;
}
.elb-cta-btn:hover {
    background: #16a34a;
    transform: translateY(-1px);
    color: #fff !important;
}
.elb-cta-btn:active { transform: translateY(0); }

/* ── Tom / fejltilstand ───────────────────────────── */
.elb-no-butikker {
    padding: 10px 16px;
    color: #94a3b8;
    font-style: italic;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 12px;
    margin: 0;
}
.elb-empty { color: #94a3b8; font-style: italic; font-size: 13px; }

/* ── Responsiv ────────────────────────────────────── */
@media (max-width: 700px) {
    .elb-cols-2,
    .elb-cols-3 { grid-template-columns: 1fr; }

    .elb-product-top { padding: 12px 14px 10px; }

    .elb-butik-row-fe {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        gap: 6px 10px;
        padding: 8px 14px;
    }
    .elb-butik-logo-fe  { grid-column: 1; grid-row: 1; align-self: center; }
    .elb-butik-price-fe { grid-column: 2; grid-row: 1; text-align: right; }
    .elb-butik-cta-fe   { grid-column: 1 / -1; grid-row: 2; }
    .elb-cta-btn        { display: flex; justify-content: center; width: 100%; padding: 9px; }
    .elb-price-number   { font-size: 15px; }
}