.woocommerce .woocommerce-ordering select {

    display: none;
}

/**
 * Disable Add to Cart & Buy Now buttons when variation is not selected
 * For WooCommerce variable products
 * Version 1.0
 */

/*
 * 1. Target the sticky bottom bar area that contains the form
 * 2. Find the variation form within it
 * 3. When NO variation is selected (variation_id has no value AND single_variation is hidden)
 *    Target the disabled state of the buttons
 */

/* Base disabled styling for both buttons - makes them look visually disabled */
.add-to-cart-bottom-wrapper .single_add_to_cart_button.disabled,
.add-to-cart-bottom-wrapper .buy_now_button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(0.1);
}

/* Alternative approach if the 'disabled' class isn't consistently applied:
 * Target the buttons when the variation_id input is empty,
 * which indicates no option has been chosen.
 */
.add-to-cart-bottom-wrapper .variations_form 
input.variation_id[value=""] 
~ .woocommerce-variation-add-to-cart 
.single_add_to_cart_button,
.add-to-cart-bottom-wrapper .variations_form 
input.variation_id[value=""] 
~ .woocommerce-variation-add-to-cart 
.buy_now_button {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    background-color: #cccccc !important;  /* Gray background for disabled appearance */
    border-color: #aaaaaa !important;
    color: #666666 !important;
}

/* Also handle the case where the variation is out of stock or unavailable */
.add-to-cart-bottom-wrapper .single_variation_wrap 
.woocommerce-variation-add-to-cart-disabled 
.single_add_to_cart_button,
.add-to-cart-bottom-wrapper .single_variation_wrap 
.woocommerce-variation-add-to-cart-disabled 
.buy_now_button {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    background-color: #e0e0e0 !important;
    border-color: #cccccc !important;
    color: #999999 !important;
}

/* Ensure custom button styles are overridden when disabled */
.add-to-cart-bottom-wrapper .single_add_to_cart_button.disabled,
.add-to-cart-bottom-wrapper .single_add_to_cart_button:disabled,
.add-to-cart-bottom-wrapper .buy_now_button.disabled,
.add-to-cart-bottom-wrapper .buy_now_button:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    background-color: #cccccc !important;
    border-color: #aaaaaa !important;
    color: #666666 !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Optional: Add a subtle hint message when hovering over disabled buttons */
.add-to-cart-bottom-wrapper .single_add_to_cart_button.disabled:hover::after,
.add-to-cart-bottom-wrapper .buy_now_button.disabled:hover::after {
    content: "Please select an option first";
    position: absolute;
    background: #333;
    color: #fff;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 4px;
    white-space: nowrap;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    z-index: 9999;
    pointer-events: none;
    font-weight: normal;
    letter-spacing: normal;
}

/* Position relative for tooltip positioning */
.add-to-cart-bottom-wrapper .single_add_to_cart_button,
.add-to-cart-bottom-wrapper .buy_now_button {
    position: relative;
}

/* Responsive adjustments for mobile - ensure it works on all devices */
@media (max-width: 768px) {
    .add-to-cart-bottom-wrapper .single_add_to_cart_button.disabled:hover::after,
    .add-to-cart-bottom-wrapper .buy_now_button.disabled:hover::after {
        display: none; /* Hide tooltip on touch devices */
    }
}

/* Additional fallback: Target the wrapper class that gets added when variation is needed */
.wc-variation-selection-needed {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}


.sliding-menu li a:hover, .sliding-menu li .sliding-menu__nav:hover {
    color: #BB5D3C;
}

.details-product .delivery-shipping-info {
    
    display: none;
}



/* === MAIN OFFCANVAS CONTAINER === */
.offcanvas-content.active {
    display: flex !important;
    flex-direction: column !important;
    height: 100vh !important;          /* full viewport height */
    max-height: 100vh !important;
    overflow: hidden !important;
    background: #fff;
}

/* === CART CONTENT (flex column) === */
.widget_shopping_cart_content {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    overflow: hidden !important;
}

/* === PRODUCT LIST – SCROLLABLE === */
.wpr-woo-mini-cart {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 0 15px !important;
    margin: 0 !important;
    max-height: none !important;
}

/* === DISABLE PERFECT SCROLLBAR === */
.ps-container {
    overflow-y: auto !important;
    overflow-x: hidden !important;
}
.ps-scrollbar-x-rail, .ps-scrollbar-y-rail,
.ps-scrollbar-x, .ps-scrollbar-y {
    display: none !important;
}

/* === EACH CART ITEM === */
.woocommerce-mini-cart-item.mini_cart_item {
    display: flex !important;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

/* Image */
.wpr-mini-cart-image {
    width: 70px !important;
    flex-shrink: 0;
}
.wpr-mini-cart-image img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

/* Name + quantity area */
.wpr-mini-cart-name-and-quantity {
    flex: 1;
    min-width: 0;
}

/* Product name (max 2 lines) */
.wpr-mini-cart-product-name {
    width: auto !important;
    margin-bottom: 4px;
}
.wpr-mini-cart-name {
    font-size: 0.9rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

/* Quantity / price */
.wpr-mini-cart-quantity .quantity {
    font-size: 0.85rem;
    color: #555;
}

/* Remove button (×) */
.wpr-mini-cart-remove {
    width: 28px !important;
    flex-shrink: 0;
    text-align: right;
    padding: 0 !important;
}
.wpr-mini-cart-remove a {
    font-size: 22px;
    color: #999;
    text-decoration: none;
}
.wpr-mini-cart-remove a:hover {
    color: #e2401c;
}

/* === SEPARATOR === */
.wpr-mini-cart-separator {
    flex-shrink: 0;
    padding-top: 10px;
}

/* === SUBTOTAL & BUTTONS – FIXED AT BOTTOM === */
.woocommerce-mini-cart__total {
    flex-shrink: 0;
    padding: 12px 15px;
    border-top: 1px solid #eee;
    margin: 0;
    background: #fff;
    font-weight: bold;
    font-size: 1rem;
}

.woocommerce-mini-cart__buttons {
    flex-shrink: 0;
    display: flex;
    gap: 10px;
    padding: 12px 15px;
    background: #fff;
    border-top: 1px solid #eee;
    margin: 0;
}

.woocommerce-mini-cart__buttons .button {
    flex: 1;
    text-align: center;
    padding: 10px;
    background-color: #2c3e50;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: 0.2s;
}
.woocommerce-mini-cart__buttons .button.checkout {
    background-color: #e67e22;
}
.woocommerce-mini-cart__buttons .button:hover {
    opacity: 0.85;
}


.woocommerce .goal-topcart .buttons a.button{
   margin-bottom:20px !important;
}