/* * Woo Like Never Before - Core Styles
 */

.wlnb__quantity-control { 
    display: none; 
    align-items: center; 
    gap: 5px; 
}

.wlnb__quantity-control button { 
    padding: 5px 10px; 
    cursor: pointer; 
    min-width: 30px; 
}

/* DEFAULT STATE: Show Add Button, Hide Controls */
.wlnb-quantity-form .wlnb__add-to-cart { 
    display: inline-block !important; 
}
.wlnb-quantity-form .wlnb__quantity-control { 
    display: none !important; 
}

/* ACTIVE STATE (In Cart): Hide Add Button, Show Controls */
/* We use !important to override aggressive Theme CSS on loop pages */
.wlnb-quantity-form.in-cart .wlnb__add-to-cart { 
    display: none !important; 
}
.wlnb-quantity-form.in-cart .wlnb__quantity-control { 
    display: flex !important; 
}

/* Variable Wrapper */
.wlnb-variable-wrapper { 
    display: none; 
    margin-top: 15px; 
}
.wlnb-variable-wrapper.active { 
    display: block; 
}

/* Helper to hide default Woo elements */
.woocommerce-variation-add-to-cart .single_add_to_cart_button, 
.woocommerce-variation-add-to-cart .quantity { 
    display: none !important; 
}

/* Cart Page */
#wlnb-virtual-cart-container { 
    display: none; 
}
.wlnb-cart-table { 
    width: 100%; 
    border-collapse: collapse; 
    margin-bottom: 20px; 
}
.wlnb-cart-table th, 
.wlnb-cart-table td { 
    padding: 15px; 
    text-align: left; 
    border-bottom: 1px solid #eee; 
}
.wlnb-cart-img img { 
    width: 60px; 
    height: auto; 
}
.wlnb-cart-total { 
    font-weight: bold; 
    font-size: 1.2em; 
    text-align: right; 
    margin-top: 20px; 
}
.wlnb-checkout-btn { 
    display: block; 
    width: 100%; 
    text-align: center; 
    background: #000; 
    color: #fff; 
    padding: 15px; 
    text-decoration: none; 
    margin-top: 20px; 
}

/* STICKY CART WIDGET */
#wlnb-sticky-cart {
    position: fixed;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 50px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 9999;
    cursor: pointer;
    transition: transform 0.2s;
}

#wlnb-sticky-cart:hover {
    transform: scale(1.05);
}

.wlnb-sticky-icon {
    position: relative;
    display: flex;
    align-items: center;
}

#wlnb-sticky-count {
    position: absolute;
    top: -5px;
    right: -10px;
    background: #d32f2f;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    border-radius: 50%;
    padding: 2px 6px;
    min-width: 15px;
    text-align: center;
}

#wlnb-sticky-total {
    font-weight: bold;
    font-size: 16px;
    color: #333;
}

/* POSITIONS */
.wlnb-pos-bottom-right { bottom: 20px; right: 20px; }
.wlnb-pos-bottom-left { bottom: 20px; left: 20px; }
.wlnb-pos-bottom-center { bottom: 20px; left: 50%; transform: translateX(-50%); }
.wlnb-pos-center-right { top: 50%; right: 20px; transform: translateY(-50%); }
.wlnb-pos-center-left { top: 50%; left: 20px; transform: translateY(-50%); }

/* Adjust hover transforms for centered elements to keep centering */
.wlnb-pos-bottom-center:hover { transform: translateX(-50%) scale(1.05); }
.wlnb-pos-center-right:hover { transform: translateY(-50%) scale(1.05); }
.wlnb-pos-center-left:hover { transform: translateY(-50%) scale(1.05); }