/* Floating WooCommerce Cart Styles */

/* Style for the floating WooCommerce cart container */
#floating-woocart {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 9999;
    cursor: pointer;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

/* Hover effect for the cart */
#floating-woocart:hover {
    transform: scale(1.1);
}

/* Style for the cart icon inside the container */
#floating-woocart .cart-icon {
    width: 80%;
    height: 80%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* Different cart icons *
.cart-icon.icon1 {
    margin-left: -10px;
}

.cart-icon.icon2 {
    margin-left: -10px;
}

.cart-icon.icon3 {
    margin-left: -10px;
}

.cart-icon.icon4 {
    margin-left: -10px;
}

.cart-icon.icon5 {
    margin-left: -10px;
}
.cart-icon.icon6 {
    margin-left: -10px;
}

.cart-icon {
    margin-left: -10px !important;
}

/* Style for the cart count */
#floating-woocart .cart-count {
    position: absolute;
    background-color: #ff3e3e;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Ensure no default styles from themes affect the cart */
#floating-woocart, #floating-woocart .cart-icon, #floating-woocart .cart-count {
    box-sizing: border-box;
}

/* Shapes for the cart container */
#floating-woocart.round {
    border-radius: 50%;
}

#floating-woocart.square {
    border-radius: 0%;
}

#floating-woocart.diamond {
    transform: rotate(45deg);
    border-radius: 10%;
}

/* Responsive positioning */
@media (max-width: 768px) {
    #floating-woocart {
        width: 50px;
        height: 50px;
    }

    #floating-woocart .cart-count {
        font-size: 12px;
        width: 20px;
        height: 20px;
    }
}

/* Animation for cart appearance */
#floating-woocart {
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}