.products-col {
    --min: 20rem;
    --gap: 2rem;
    display: grid;
    gap: var(--gap);

    /* Auto-fit kolonner */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min)), 1fr));

    max-width: calc(4 * var(--min) + 3 * var(--gap));
    margin-inline: auto;
}

.product-div {
    height: 100%;
    display: block;
    justify-content: center;
    align-content: center;
    transition: all 0.5s ease;
    z-index: 0;

}

.product-div:hover {
    transform: scale(1.05);
}

.clickable-card {
    position: relative;
    cursor: pointer;
}

.clickable-card a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.hidden-text {
color: transparent;
    font-size: 0;
}

.honning-type {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

/* .product-div:hover .honning-type {
    opacity: 1;
    visibility: visible;
} */

.productglass-div {
    position: relative;
    width: fit-content;
}

.product-glass {
    position: relative;
    display: flex;
    height: fit-content;
    width: auto;
    margin: 0 auto;
    justify-content: center;
    z-index: 5;
}

.product-glass img {
    height: auto;
    max-height: fit-content;
    width: fit-content;
    display: block;
}

.type-badge {
    position: absolute;
    top: -0.5rem;
    right: -1rem;
    width: 5rem;
    z-index: 10;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3));
    transition: all 0.2s ease;
}

#storrelse-div {
    display: flex;
}


/* Størrelse visning */
.products-col {
    align-items: end;
}

/* Hvert produkt får en skalavariabel */
.product-div {
    --scale: 1;
    /* settes i JS (products.js) */
    --k: 1.75;
    display: grid;
    place-items: center;
}

.honning_bakgrunn {
    position: relative;
    width: 100%;
    display: inline-block;
}

.honning_glass img {
    position: absolute;
    bottom: 1rem;
    left: 0;
    right: 0;
    margin-inline: auto;
    width: 66%;
}

/* Selve glass-bildet skaleres rundt bunnen */
.product-div .productglass-div figure img {
    transform-origin: bottom center;
    transform: scale(var(--scale));
    transition: transform .1s ease;
}

.productglass-div {
    min-height: fit-content;
    display: grid;
    place-items: end center;
}




@media (min-width: 1000px) {
    .product-glass img {
        max-height: 16rem;
    }

    .type-badge {
        position: absolute;
        top: 0rem;
        right: -0.5rem;
        width: 5rem;
        z-index: 10;
        filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3));
        transition: all 0.2s ease;
    }
}

@media (max-width: 800px) {
    .product-glass img {
        max-height: 20rem;
    }

    .products-col {
        --min: 10rem;
    }
}

@media (max-width: 500px) {
    .products-col {
        display: grid;
        gap: 1rem;

        /* Alltid to kolonner */
        grid-template-columns: repeat(2, 1fr);

        max-width: 100%;
        /* fjern begrensningen */
        margin-inline: auto;
    }
}