/* Home Page Component Styles */

/* Product Card Structure */
.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-actions {
    padding: 0.75rem;
    border-top: 1px solid #eee;
    background: #f8f9fa;
}

.btn-add-to-cart {
    width: 100%;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #FFC107 0%, #ff9800 100%);
    border: none;
    color: white;
    font-weight: 600;
}

.btn-add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
}

.btn-add-to-cart:disabled {
    transform: none;
}

.btn-add-to-cart.adding {
    opacity: 0.7;
    pointer-events: none;
}

/* Toast notification styles */
.toast-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    min-width: 320px;
    max-width: 450px;
    animation: slideInRight 0.3s ease;
}

.toast-notification .alert {
    margin-bottom: 0;
    flex-wrap: nowrap;
    gap: 0.75rem;
}

.toast-notification .btn-light {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.15);
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.toast-notification .btn-light:hover {
    background: #f8f9fa;
    transform: scale(1.05);
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.toast-notification.hiding {
    animation: slideOutRight 0.3s ease;
}

/* Mobile toast adjustments */
@media (max-width: 575px) {
    .toast-notification {
        top: 70px;
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
    }

    .toast-notification .alert {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.875rem;
    }

    .toast-notification .btn-close {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
    }

    .toast-notification .btn-light {
        margin-top: 0.5rem;
        margin-left: 0 !important;
        width: 100%;
    }
}
