/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9; 
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1; 
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8; 
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateY(0);
}

/* Hide number input arrows */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}

/* Active states for filters */
.filter-active {
    color: #e11d48;
    font-weight: 600;
}

.wishlist-active {
    color: #e11d48 !important;
    background-color: #fff1f2 !important;
}

/* Product card cursor pointer for clickability */
.product-card {
    cursor: pointer;
}

/* Modal image - small and round */
.modal-product-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f1f5f9;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.modal-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

/* Floating Cart Button - Fixed at top when scrolling */
.floating-cart-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(225, 29, 72, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.floating-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(225, 29, 72, 0.5);
}

.floating-cart-btn:active {
    transform: translateY(0);
}

.floating-cart-btn .cart-icon {
    font-size: 18px;
}

.floating-cart-btn .cart-count {
    background: white;
    color: #e11d48;
    font-size: 12px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hide floating cart when sidebar is open */
.cart-sidebar-open .floating-cart-btn {
    opacity: 0;
    pointer-events: none;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .floating-cart-btn {
        top: auto;
        bottom: 20px;
        right: 20px;
        padding: 14px 18px;
    }

    .floating-cart-btn .cart-text {
        display: none;
    }

    .floating-cart-btn .cart-icon {
        font-size: 20px;
    }
}