.gpf-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    font-family: 'Lato', sans-serif;
    margin: 30px 0;
}

/* Card is now an <a> — kill all theme link styling */
.gpf-card,
.gpf-card:hover,
.gpf-card:focus,
.gpf-card:visited,
.gpf-card:active {
    background: #fff;
    border-top: 4px solid #00C750;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-decoration: none !important;
    color: #FFFFFF !important;
    cursor: pointer;
}

.gpf-card:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.2s ease;
}

.gpf-card__image {
    background: #fff;
    padding: 20px;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.gpf-card__image img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block;
}

.gpf-card__footer {
    background: #151515;
    color: #FFFFFF !important;
    padding: 22px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex: 1;
    font-family: 'Lato', sans-serif;
}

.gpf-card__info {
    flex: 1;
    min-width: 0;
}

.gpf-card__model {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #FFFFFF !important;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

/* "Was" line — force green over any theme rule */
.gpf-card__price-was,
.gpf-card__price-was del,
.gpf-card__price-was * {
    color: #00C751 !important;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
}

.gpf-card__price-was {
    margin: 0 0 4px 0;
}

.gpf-card__price-was del {
    text-decoration: line-through;
    margin-left: 4px;
}

.gpf-card__price-now {
    font-size: 16px;
    font-weight: 400;
    margin: 0 0 8px 0;
    line-height: 1.4;
    color: #FFFFFF !important;
}

.gpf-card__price-now .gpf-highlight-price {
    color: #00C751 !important;
}

.gpf-card__price-now .gpf-vat {
    color: #FFFFFF !important;
    margin-left: 4px;
}

.gpf-card__fuel {
    color: #FFFFFF !important;
    font-size: 16px;
    font-weight: 400;
    margin: 0;
    line-height: 1.4;
}

.gpf-card__stock {
    color: #ef4444 !important;
    font-size: 14px;
    font-weight: 400;
    font-family: 'Lato', sans-serif;
    margin: 4px 0 0 0;
    line-height: 1.4;
}

/* Button is now a <span> inside the card link */
.gpf-card__btn {
    background: #00C750;
    color: #FFFFFF !important;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 400;
    font-family: 'Lato', sans-serif;
    text-decoration: none !important;
    white-space: nowrap;
    border-radius: 0;
    display: inline-block;
    transition: background 0.2s ease;
    text-align: center;
}

/* Hover state lives on the parent <a class="gpf-card"> — button darkens, text stays white */
.gpf-card:hover .gpf-card__btn,
.gpf-card:focus .gpf-card__btn,
.gpf-card:focus-within .gpf-card__btn {
    background: #00B048;
    color: #FFFFFF !important;
    text-decoration: none !important;
}

/* Tablet: 2 columns, button stacks below text full-width */
@media (max-width: 1024px) {
    .gpf-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gpf-card__footer {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }
    .gpf-card__btn {
        width: 100%;
        padding: 12px 20px;
    }
}

/* Mobile: 1 column */
@media (max-width: 600px) {
    .gpf-grid {
        grid-template-columns: 1fr;
    }
}
