/**
 * Product Card Custom Styles
 * Enhanced cart button styles with clean black icon (no background)
 */

/* Product Card Hover Effect */
.product-card {
    transition: all 0.3s ease;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15) !important;
}

/* Cart Icon - Clean Black Style (No Background) */
.cart-action-buttons {
    display: flex;
    gap: 5px;
    flex-direction: column;
}

.cart-icon-clean {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px !important;
    height: 40px !important;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.95) !important;
    border: none !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    z-index: 9999 !important;
}

.cart-icon-clean i {
    font-size: 18px !important;
    color: #000 !important;
    transition: all 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: block !important;
}

/* Hover Effect - Scale and slight color change */
.cart-icon-clean:hover {
    background: #000 !important;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}

.cart-icon-clean:hover i {
    color: #fff !important;
}

/* Loading State */
.cart-icon-clean.loading {
    pointer-events: none;
    opacity: 0.7;
}

.cart-icon-clean.loading i {
    animation: rotate 0.8s linear infinite;
}

/* Success State */
.cart-icon-clean.added i {
    color: #28a745 !important;
    animation: bounce 0.5s ease;
}

/* Out of Stock State */
.cart-icon-clean.cart-out-of-stock {
    cursor: not-allowed;
    opacity: 0.4;
}

.cart-icon-clean.cart-out-of-stock:hover i {
    transform: none;
}

/* Discount Badge */
.on-sale {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Product Image */
.product-thumb img {
    transition: transform 0.3s ease;
}

.product-card:hover .product-thumb img {
    transform: scale(1.05);
}

.product-thumb {
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

/* Product Content */
.product-content {
    background: white;
    border-radius: 0 0 8px 8px;
    margin-top: 0 !important;
    padding-top: 0.35rem !important;
}

.product-title a {
    transition: color 0.3s ease;
    display: block;
    margin-top: 0 !important;
}

.product-title a:hover {
    color: #007bff !important;
}

/* Price Styling */
.price-current {
    font-size: 1.1rem;
}

.price-old {
    font-size: 0.9rem;
}

/* Rating Stars */
.product-rating .stars i {
    font-size: 14px;
}

/* Animations */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .cart-action-buttons {
        top: 6px !important;
        right: 6px !important;
        gap: 5px !important;
    }

    .cart-icon-clean {
        width: 34px !important;
        height: 34px !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
    }

    .cart-icon-clean i {
        font-size: 15px !important;
    }

    .on-sale {
        font-size: 10px !important;
        padding: 3px 6px !important;
    }
}

/* Extra Small Devices (phones, less than 400px) */
@media (max-width: 400px) {
    .cart-action-buttons {
        top: 5px !important;
        right: 5px !important;
        gap: 4px !important;
    }

    .cart-icon-clean {
        width: 30px !important;
        height: 30px !important;
    }

    .cart-icon-clean i {
        font-size: 14px !important;
    }

    .on-sale {
        font-size: 9px !important;
        padding: 2px 5px !important;
        top: 5px;
        left: 5px;
    }
}
