/* Grid layout */
#affiliate-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
    padding: 10px;
}

/* Card container */
.product-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Hover lift */
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* Image wrapper */
.product-image {
    width: 100%;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin-bottom: 12px;
}

/* Image itself */
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Title */
.product-card h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    color: #222;
}

/* Description */
.product-card p {
    margin: 0 0 14px;
    color: #555;
    text-align: center;
    line-height: 1.4;
}

/* Button */
.product-card a {
    margin-top: auto;
    display: inline-block;
    padding: 10px 14px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.2s ease;
}

/* Button hover */
.product-card a:hover {
    background: #005f8d;
}