.product-grid {
    display: grid;
    gap: var(--gap, 20px);
    margin-top: 20px;
    /* Vi starter med 4 kolonner som standard for desktop */
    grid-template-columns: repeat(4, 1fr);
}

.product-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover { 
	transform: scale(1.08);
	border: 0px solid var(--tech-green);
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: center;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
	box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.product-card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.price-tag {
	color: var(--bg-darkblue);
    font-weight: 700;
    font-size: 0.9rem;
}

.item-headline {
    font-weight: 700;
    margin-bottom: 0.25rem; 
    display: block; 
	font-size: 1.0rem;
}

.add-to-cart {
    /* btn-primary (stilen) */
    background-color: var(--bg-darkblue);
    color: #fff;
    border: none;
    border-radius: 4px;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 2;
    width: 100%;
}

/* Hover-effekt (valgfrit, men god stil) */
.add-to-cart:hover {
    background-color: var(--text-dim);
}

.add-to-cart-soldout {
    /* btn-primary (stilen) */
    background-color: var(--text-dim);
    color: #fff;
    border: none;
    border-radius: 4px;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 2;
    width: 100%;
}

.outline-btn {
    /* btn (Basis stilen) */
    display: inline-block;
    font-weight: 400;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-color: transparent;
    border: 1px solid var(--text-dim); /* Den mørke kant */
    text-decoration: none;
    transition: all 0.2s ease-in-out; /* Gør farveskiftet blødt */
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--bg-darkblue);
}

/* Hover-effekt (Vigtig for outline-knapper) */
.outline-btn:hover {
    background-color: var(--text-dim);
    color: #fff;               /* Teksten bliver hvid */
}

.cat-name {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--bg-darkblue);
}

/* Stilen for tallet (Tvinger ændringer) */
.cat-amount {
    /* Her fjerner vi "bold" og gør den mindre */
    font-weight: 400 !important; 
    font-size: 0.8rem !important;
    color: #888 !important;
    margin-left: 1px;
}

/* Store skærme (Laptops) */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablets */
@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* Mobiler */
@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: 1fr; /* Én kolonne tager alt plads */
        gap: 10px;
    }
    
    /* Bonus: Fjern scale-hover på mobil, da man ikke har en mus */
    .product-card:hover {
        transform: none;
    }
}