/* Additions to style.css for Index & Products */

/* Hero Button */
.btn-hero {
    background-color: transparent;
    border: 2px solid var(--primary-white);
    color: var(--primary-black);
    font-weight: 600;
    transition: all 0.3s ease;
    border-color: var(--primary-black);
}

.btn-hero:hover {
    background-color: var(--primary-white);
    color: var(--primary-black);
    border-color: var(--primary-white);
}

/* Product Cards */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image-wrapper {
    background-color: #f8f9fa;
}

.quick-view-btn {
    opacity: 1;
    transform: translate(-50%, 0) !important;
    transition: all 0.3s ease;
    font-weight: 500;
}

.quick-view-btn:hover {
    background-color: var(--primary-black);
    color: var(--primary-white);
    transform: translate(-50%, -2px) !important;
}

.quick-add-btn {
    opacity: 1;
    transform: none;
    transition: all 0.3s ease;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.quick-add-btn:hover {
    background-color: var(--primary-black) !important;
    color: var(--primary-white) !important;
    transform: scale(1.1);
}

/* Add to Cart Toast Notification */
.cart-notification {
    position: fixed;
    top: 25px;
    right: 25px;
    background: #fff;
    color: #111;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10001;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    border-left: 4px solid #111;
    pointer-events: none;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.cart-notification.error {
    border-left-color: #dc3545;
}

.cart-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.cart-notification i {
    font-size: 1.2rem;
}

.cart-notification.error i {
    color: #dc3545;
}

.cart-notification .product-name {
    font-weight: 700;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    vertical-align: bottom;
}

@media (max-width: 575.98px) {
    .cart-notification {
        top: auto;
        bottom: 90px;
        right: 20px;
        left: 20px;
        transform: translateY(150%);
    }
    .cart-notification.show {
        transform: translateY(0);
    }
}

/* Global Fly-to-Cart Animations */
.flying-image {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    object-fit: cover;
}

@keyframes cartBounce {
    0% { transform: scale(1); }
    30% { transform: scale(1.3); }
    50% { transform: scale(0.9); }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.cart-bounce i {
    display: inline-block;
    animation: cartBounce 0.4s ease-in-out;
    color: var(--accent-green, #28a745) !important;
}