/* ======================= affiliate GRID / HOME ======================= */
.affiliate-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 20px;
    margin-bottom: 20px;
}


.affiliate-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 400px; /* ens højde */
    background: var(--card);
    padding: 20px;
    border-radius: 14px;
    box-shadow: var(--shadow);
    transition: transform 0.25s, box-shadow 0.25s;
    text-align: center;
}

.affiliate-card .enter-shop {
    display: inline-block;
    margin-top: 12px;
    text-decoration: none;
    background: var(--accent);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    transition: 0.25s;
}

.affiliate-card .enter-shop:hover {
    background: var(--accent2);
}

.affiliate-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.15);
}

/* Billeder skaleres proportionalt */
.affiliate-card img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.affiliate-card .enter-shop {
    display: inline-block;
    margin-top: 12px;
    text-decoration: none;
    background: var(--accent);
    background: linear-gradient(135deg, #ff8c42, #ff6f3b); /* levende orange gradient */
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}

.affiliate-card .enter-shop:hover {
    background: var(--accent2);
    background: linear-gradient(135deg, #e67635, #d95f28); /* lidt mørkere gradient på hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}

h2 {
    text-align: center;
    font-family: 'Poppins', 'Segoe UI', sans-serif; /* moderne fed font */
    font-weight: 700;
    font-size: 2.0rem;
    margin: 15px 0 15px 0; /* luft over og under */
    color: var(--text);
}

/* ======================= SHOP/PRODUKT/affiliate BOX ======================= */
.affiliate-grid, .product-grid {
    display: grid;
    gap: 25px;
    margin-top: 20px;
}

/* Ens størrelse på alle bokse */
.affiliate-card, .product-grid .product {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 400px; /* fast min-height for ens grid */
    background: var(--card);
    padding: 20px;
    border-radius: 14px;
    box-shadow: var(--shadow);
    transition: transform 0.25s, box-shadow 0.25s;
}

/* Billeder skalerer indenfor boxen */
.affiliate-card img,
.product-grid .product img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 12px;
    flex-shrink: 0;
}

/* Hover effekt */
.affiliate-card:hover,
.product-grid .product:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.15);
}
