
.product-image-wrapper {
    position: relative;
    overflow: hidden;
}

.product-image-wrapper img {
    transition: transform 0.4s ease;
}

.product-card:hover .product-image-wrapper img {
    transform: scale(1.1);
}


.product-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    animation: slideInLeft 0.4s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.badge-featured {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
}

.badge-stock {
    background: rgba(255, 255, 255, 0.95);
}

.badge-stock.in-stock {
    color: #065f46;
    border: 2px solid #10b981;
}

.badge-stock.out-stock {
    color: #991b1b;
    border: 2px solid #ef4444;
}


.product-quick-add {
    position: absolute;
    bottom: 15px;
    right: 15px;
    opacity: 0;
    transform: scale(0.8) translateY(10px);
    transition: all 0.3s ease;
    z-index: 3;
}

.product-card:hover .product-quick-add {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.btn-quick-add-cart {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-quick-add-cart::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-quick-add-cart:hover::before {
    width: 100px;
    height: 100px;
}

.btn-quick-add-cart:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
}

.btn-quick-add-cart:active {
    transform: scale(0.95);
}

.btn-quick-add-cart i {
    position: relative;
    z-index: 1;
    animation: cartBounce 0.6s ease infinite;
}

@keyframes cartBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

.btn-quick-add-cart:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #9ca3af;
}


.product-content {
    padding: 15px;
}

.product-content h3 a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-content h3 a:hover {
    color: #2563eb;
}

.price-hidden {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    font-size: 14px;
    padding: 6px 12px;
    background: #f3f4f6;
    border-radius: 6px;
    font-weight: 500;
}

.price-hidden i {
    color: #9ca3af;
}


@media (max-width: 768px) {
    .product-quick-add {
        opacity: 1;
        transform: scale(1) translateY(0);
    }

    .btn-quick-add-cart {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }
}

@media (max-width: 640px) {
    .product-badges {
        top: 8px;
        left: 8px;
        gap: 6px;
    }

    .badge {
        padding: 4px 10px;
        font-size: 11px;
        gap: 4px;
    }

    .product-quick-add {
        bottom: 10px;
        right: 10px;
    }

    .btn-quick-add-cart {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}