.product-image-wrapper {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #1a1a1a 0%, #2d2d2d 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.product-image {
    width: 100%;
    height: 100%;
    max-width: 140px;
    max-height: 140px;
    object-fit: contain;
    object-position: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #1a1a1a;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.voucher-card-category .product-image {
    max-width: 60px;
    max-height: 60px;
    padding: 8px;
    border-radius: 8px;
    background: #1a1a1a;
}

.product-image[src*="amazon"],
.product-image[src*="steam"],
.product-image[src*="netflix"],
.product-image[src*="spotify"],
.product-image[src*="google"],
.product-image[src*="apple"],
.product-image[src*="microsoft"] {
    background: #1a1a1a;
    padding: 10px;
}

.product-image[src*="lycamobile"] {
    background: #0066cc;
    padding: 8px;
}

.product-image[src*="tinder"] {
    background: #ff6b6b;
    padding: 8px;
}

.product-image[src*="valorant"] {
    background: #ff4655;
    padding: 8px;
}

.product-image[src*="league"] {
    background: #c89b3c;
    padding: 8px;
}

.product-image[src*="fortnite"] {
    background: #f7931e;
    padding: 8px;
}

.product-card {
    animation: slideInUp 0.6s ease-out forwards;
    animation-delay: calc(var(--animation-order, 0) * 0.1s);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.product-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.product-card:hover .product-image {
    transform: scale(1.15);
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.3));
}

.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(221, 190, 88, 0.1) 0%, rgba(221, 190, 88, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
    pointer-events: none;
}

.product-card:hover::after {
    opacity: 1;
}

.product-image-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 2px solid #333;
    border-top: 2px solid #DDBE58;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-image[src=""]+.product-image-wrapper::before,
.product-image:not([src])+.product-image-wrapper::before {
    opacity: 1;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@media (max-width: 768px) {
    .product-image {
        max-width: 120px;
        max-height: 120px;
        padding: 10px;
    }

    .voucher-card-category .product-image {
        max-width: 50px;
        max-height: 50px;
        padding: 6px;
    }

    .product-card:hover {
        transform: translateY(-8px) scale(1.02);
    }
}

@media (max-width: 480px) {
    .product-image {
        max-width: 100px;
        max-height: 100px;
        padding: 8px;
    }

    .voucher-card-category .product-image {
        max-width: 40px;
        max-height: 40px;
        padding: 4px;
    }
}

.product-link:focus {
    outline: 3px solid #DDBE58;
    outline-offset: 4px;
    border-radius: 20px;
}

.product-link:focus .product-image {
    transform: scale(1.05);
}

.product-card,
.product-image,
.product-title {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    filter: contrast(1.1) brightness(1.05);
}

.product-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 60%, rgba(0, 0, 0, 0.2) 100%);
    pointer-events: none;
    border-radius: 20px 20px 0 0;
}