.hostkampanje-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.host-produkt-kort {
    background: #FFFAF0;
    border: 1px solid #EADDCB;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.1);
    text-align: center;
    position: relative; /* VIKTIG for pris-taggen */
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding-bottom: 20px; /* Litt luft nederst */
}

.host-produkt-kort:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(139, 69, 19, 0.2);
}


.host-produkt-kort .produkt-bilde-wrapper {
    width: 100%;
    height: 250px; 
    background: #ffffff;
    padding: 10px;
    box-sizing: border-box;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; /* Plasserer den under pris-taggen */
    z-index: 1;
}

.host-produkt-kort .produkt-bilde-wrapper img {
    max-width: 100% !important; 
    height: auto !important;
    object-fit: contain;
    display: block;
    margin: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.host-produkt-kort:hover .produkt-bilde-wrapper img {
    opacity: 1;
}

.host-produkt-kort .produkt-tittel {
    font-size: 1.2em;
    font-weight: 600;
    color: #5D4337;
    padding: 10px 15px 5px 15px;
    min-height: 50px;
    z-index: 5; /* Over bildet */
    position: relative; 
    background: #FFFAF0; 
}

.host-produkt-kort .ny-pris-under-tittel {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--cmplz_category_header_always_active_color);
    padding: 0px 15px 10px 15px;
    background: #FFFAF0; 
    position: relative;
    z-index: 5;
    margin-top: -5px;
}

/* Fikser WC-pris-styling hvis den havner inni den nye wrapperen */
.host-produkt-kort .ny-pris-under-tittel .price {
    position: static;
    transform: none;
    background: none;
    color: inherit !important; 
    font-size: 1em !important;
    font-weight: 700 !important;
    padding: 0;
    box-shadow: none;
    display: inline;
}
.host-produkt-kort .ny-pris-under-tittel .price del {
    display: inline-block !important; /* Vis førpris */
    opacity: 0.6;
    font-size: 0.8em;
    margin-right: 5px;
    color: #5D4337; /* Mørk brun */
}
.host-produkt-kort .ny-pris-under-tittel .price ins {
    text-decoration: none;
    background: none;
    color: inherit !important;
}

.host-produkt-kort .pris-wrapper {
    padding: 0;
    min-height: 0;
}

.host-produkt-kort .pris-wrapper .price del {
    display: none !important;
}

.host-produkt-kort .pris-wrapper .price ins,
.host-produkt-kort .pris-wrapper .price {
    /* --- Selve taggen --- */
    background: #222222; /* Svart bakgrunn */
    color: #FFFFFF !important; /* Hvit tekst */
    padding: 8px 18px;
    border-radius: 5px;
    
    /* --- Plassering og skråstilling --- */
    position: absolute;
    top: 230px; 
    left: -15px; 
    transform: rotate(-8deg); /* <--- Skråstillingen! */
    z-index: 10; 
    
    /* --- Tekst-styling --- */
    font-size: 1.6em !important; 
    font-weight: 700 !important;
    text-decoration: none !important;
    line-height: 1.2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    
    display: inline-block !important;
}

.host-produkt-kort .pris-wrapper .woocommerce-Price-currencySymbol {
    margin-left: 5px; 
}

/* Fikser font-størrelsen inni taggen */
.host-produkt-kort .pris-wrapper .price ins .woocommerce-Price-amount,
.host-produkt-kort .pris-wrapper .price > .woocommerce-Price-amount {
    font-size: 1em !important; /* Arver størrelsen fra parent */
    color: #FFFFFF !important;
}

/* 7. Kjøp-knappen */
.host-produkt-kort .add-to-cart-knapp {
    display: inline-block;
    background: #000;
    color: #FFFFFF !important;
    padding: 12px 25px;
    margin: 15px auto 0 auto;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    box-shadow: none !important;
    border: none !important;
    position: relative; /* Over bildet */
    z-index: 5;
}

/* 8. Salg-banneret */
.host-produkt-kort .host-salg-badge {
    position: absolute;
    top: 15px;
    right: -45px;
    background: #CD5C5C;
    color: white;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-weight: 700;
    font-size: 0.7em;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 11; /* Over pris-taggen */
}

.host-produkt-kort a.produkt-lenke, 
.host-produkt-kort a.produkt-lenke:hover {
    text-decoration: none;
    box-shadow: none;
}

@media (max-width: 600px) {
    .hostkampanje-container {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .host-produkt-kort .produkt-tittel {
        font-size: 1em;
        min-height: 40px;
        padding: 8px 10px 4px 10px;
    }

    /* (NY) Mobil-stil for pris under tittel */
    .host-produkt-kort .ny-pris-under-tittel {
        font-size: 1.2em;
        padding-bottom: 5px;
        margin-top: 0;
    }

    .host-produkt-kort .add-to-cart-knapp {
        padding: 8px 15px;
        font-size: 0.8em;
        margin: 10px auto 0 auto;
    }

    .host-produkt-kort .produkt-bilde-wrapper {
        height: 150px;
        padding: 5px;
    }
    
    .host-produkt-kort .pris-wrapper .price ins,
    .host-produkt-kort .pris-wrapper .price {
        top: 135px; /* Høyere opp */
        left: -10px;
        font-size: 1.3em !important; /* Stor, men litt mindre på mobil */
        padding: 6px 14px;
    }
}

.hostkampanje-single-banner {
    background: #CD5C5C; 
    color: white;
    padding: 8px 40px;
    font-weight: 700;
    font-size: 1em; 
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    z-index: 99; 
    display: inline-block;
    line-height: 1.5;
    text-align: center;
    min-width: 150px; 
}