/* Custom CSS for Öhlin Center */

.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Smooth transitions */
* {
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Form focus states */
input:focus, 
select:focus, 
textarea:focus {
    outline: none;
    border-color: #3b82f6;
    ring: 2px;
    ring-color: #3b82f6;
}

/* Table hover */
tbody tr:hover {
    background-color: #f9fafb;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Flying to cart animation */
.flying-to-cart {
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    color: #3b82f6;
    pointer-events: none;
}

/* Cart pulse animation */
@keyframes cart-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.cart-pulse {
    animation: cart-pulse 0.6s ease-in-out;
}

/* Notification toast */
.notification-toast {
    position: fixed;
    top: -100px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    color: white;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    min-width: 250px;
}

.notification-toast.show {
    top: 20px;
}

/* Add to cart button hover effect */
button[onclick^="addToCart"] {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

button[onclick^="addToCart"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

button[onclick^="addToCart"]:active {
    transform: translateY(0);
}

/* Ripple effect */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

button[onclick^="addToCart"]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

button[onclick^="addToCart"]:active::after {
    animation: ripple 0.6s ease-out;
}
