/* Floating Cart Container */


/* Remove bullet points from mini-cart items */
.floating-cart-content .woocommerce-mini-cart {
    list-style: none !important;
    padding: 0;
    margin: 0;
}
/* Hide remove "×" link in floating cart */
.floating-cart-content .woocommerce-mini-cart-item .remove {
    display: none !important;
}
/* Add 10px space between View Basket and Checkout buttons */
.floating-cart-content .woocommerce-mini-cart__buttons a,
.floating-cart-content .woocommerce-mini-cart__buttons a.button {
    margin-right: 10px;
}


.floating-cart {
    position: fixed;
    bottom: 0px;
    right: 20px;
    width: 250px; /* reduced from 300px */
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 9999;
    transition: all 0.3s ease-in-out;
}

/* CART tab */
.floating-cart-tab {
    background: orange;
    color: #000000;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    cursor: pointer;
    border-radius: 9px 9px 9px 9px;
}

/* Cart count pill */
.floating-cart .cart-count {
    background: #e74c3c;
    color: #fff;
    padding: 2px 8px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    position: absolute;
    top: -10px;
    right: -10px;
}

/* Content hidden by default */
.floating-cart-content {
    display: none;
    max-height: 400px;
    overflow-y: auto;
    padding: 15px;
}

/* Show content when open */
.floating-cart.open .floating-cart-content {
    display: block;
}

/* Mini-cart item styling */
.floating-cart-content .woocommerce-mini-cart-item a {
    display: flex;
    flex-direction: column; /* stack image, title, price */
    align-items: center;    /* center horizontally */
    text-align: center;
    margin-bottom: 15px;
    position: relative;
}

/* Product image */
.floating-cart-content .woocommerce-mini-cart-item img {
    max-width: 80px;
    height: auto;
    margin-bottom: 5px;
}

/* Product title */
.floating-cart-content .woocommerce-mini-cart-item .product-name {
    margin: 0;
    font-weight: bold;
}

/* Product price */
.floating-cart-content .woocommerce-mini-cart-item .product-price,
.floating-cart-content .woocommerce-mini-cart-item .woocommerce-Price-amount {
    display: block;
    margin-top: 2px;
    font-weight: bold;
}

/* Remove justification dots */
.floating-cart-content .woocommerce-mini-cart-item .product-name::after {
    content: none !important;
}

/* Remove float for quantity/price */
.floating-cart-content .woocommerce-mini-cart-item .quantity,
.floating-cart-content .woocommerce-mini-cart-item .woocommerce-Price-amount {
    float: none !important;
}

/* Optional: spacing between items */
.floating-cart-content .woocommerce-mini-cart-item + .woocommerce-mini-cart-item {
    margin-top: 10px;
}

/* Optional: scroll bar styling */
.floating-cart-content::-webkit-scrollbar {
    width: 6px;
}
.floating-cart-content::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 3px;
}
