/* --- Seksjon --- */

.products {
    text-align: center;
    padding: 60px 20px;
}

.products h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.products-intro {
    font-size: 18px;
    color: #444;
    margin-bottom: 40px;
}

/* --- Grid --- */

.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 30px;
    align-items: center;
    justify-items: center;
}

/* --- Kort --- */

.brand-card {
    background: #fff;
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
}

/* --- SVG / PNG logo --- */

.brand-card img {
    width: 120px;          /* TVINGER riktig størrelse */
    height: auto;
    display: block;        /* hindrer SVG fra å fylle hele kortet */
    opacity: 0.9;
    transition: opacity 0.2s ease;
    z-index: 1;
}

.brand-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.brand-card:hover img {
    opacity: 1;
}

/* --- Ekstern-link ikon --- */

.external-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 22px;
    color: #666;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 5;
}

.brand-card:hover .external-icon {
    opacity: 1;
    transform: scale(1.15);
}
