.custom-mini-cart {
    position: relative !important;
    display: inline-block !important;
    font-family: var(--body-font); width: 100%;
}

.cart-toggle {
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
    color: var(--header) !important;
    box-shadow: 0px 0 7px rgba(0, 0, 0, 0.5) !important;
    border-radius: 50px !important;
    
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

/* .cart-toggle:hover {
    transform: scale(1.05) !important;
} */

.cart-count {
    background: var(--header) !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    min-width: 24px !important;
    min-height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 11px !important;
    font-weight: normal !important;
    position: absolute !important;
    top: -8px !important;
    right: -8px !important;
    border: 1px solid #ffffff !important;
}

.mini-cart-inner h3 span{ color: var(--header) !important; }
.mini-cart-content {
    position: fixed !important;
    top: 0 !important;
    right: -650px !important;
    width: 650px !important;
    height: 100% !important;
    background: var(--white-color) !important;
    box-shadow: -2px 0 7px rgba(0, 0, 0, 0.5) !important;
    transition: right 0.4s ease-in-out !important;
    z-index: 10000 !important;
    overflow-y: auto !important;
    color: #ffffff !important;
}

.mini-cart-content.active {
    right: 0 !important;
}

.mini-cart-close {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
    color: #ffffff !important;
    background: linear-gradient(45deg, #d6b035, #b7942a) !important;
    padding: 8px !important;
    border-radius: 50% !important;
    font-size: 18px !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.mini-cart-close:hover {
    background: var(--header) !important; color: var(--white-color) !important;
}
.mini-cart-close:hover::before{ display: none; }
.mini-cart-inner {
    padding: 30px !important;
    height: 100% !important;
    background: transparent !important;
    padding-top: 40px !important; /* Adjust for close button */
}

.mini-cart-inner h3 {
    margin: 0 0 18px !important;
    font-size: 24px !important;
    font-family: var(--heading-font) !important;
    color:var(--primary-color) !important;
    font-weight: normal !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border-bottom: 2px solid #d6b035 !important;
    padding-bottom: 10px !important;
}


.woocommerce-mini-cart-item {
    position: relative;
    display: flex !important;
    align-items: center !important;
    margin-bottom: 25px !important;
    border-bottom: 1px solid #333 !important;
    padding: 15px !important;
    background: #1a1a1a !important;
    border-radius: 8px !important;
    transition: transform 0.2s ease !important;
}

/* .woocommerce-mini-cart-item:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 2px 8px rgba(214, 176, 53, 0.3) !important;
} */

.woocommerce-mini-cart-item img {

    margin-right: 15px !important;
    border-radius: 5px !important;
    object-fit: cover !important;
    border: 2px solid #d6b035 !important;
}

.woocommerce-mini-cart-item a {
    color: #ffffff !important;
    text-decoration: underline !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    flex-grow: 1 !important;
    line-height: 1.5 !important;
    word-wrap: break-word !important;
    max-width: 100% !important;
     width: auto !important;
     height: auto !important;
     justify-content: flex-start !important;
}

.woocommerce-mini-cart-item .product-price { font-size: 16px !important; color: var(--header) !important; margin-left: 10px !important; }
.woocommerce-mini-cart-item a::before, .woocommerce-mini-cart__buttons > a{ display: none !important; }
.woocommerce-mini-cart-item a.remove_from_cart_button { font-size: 16px !important; margin-left: auto !important; transition: color 0.2s ease !important; position: absolute !important; right: -7px !important; top: -9px !important; width: 23px !important; height: 23px !important; border-radius: 50%; border: 1px solid var(--primary-color); text-decoration: none !important; background-color: var(--primary-color); font-family: var(--heading-font); justify-content: center !important;}
.remove_from_cart_button:hover { color: var(--header) !important; }
.widget_shopping_cart_content .total { font-size: 20px !important; font-weight: bold !important; color: #ffffff !important; margin: 25px 0 !important; padding: 10px !important; background: #1a1a1a !important; border-radius: 5px !important; text-align: right !important; border: 1px solid #333 !important; line-height: normal; display: flex ; justify-content: space-between; align-items: center; color: var(--heading-font) !important; }

.woocommerce-mini-cart__buttons {
    display: flex !important;
    gap: 15px !important;
    margin-top: 20px !important;
}

.woocommerce-mini-cart__buttons > a {
   width: 49% !important; display: block !important; height: auto !important; border-color: var(--primary-color) !important;
}

.woocommerce-mini-cart__buttons a::before{ display: none !important; }
.woocommerce-mini-cart__buttons a:hover{ background-color: var(--primary-color) !important; color: var(--white-color); }

@media (max-width: 600px) {
    .mini-cart-content {
        width: 100 !important;
        right: -100% !important;
    }

    .mini-cart-content.active {
        right: 0 !important;
    }

    .mini-cart-inner {
        padding: 20px !important;
        padding-top: 50px !important;
    }

    .mini-cart-inner h3 {
        font-size: 24px !important;
    }

    .woocommerce-mini-cart-item img {
        width: 50px !important;
        height: 50px !important;
    }

    .woocommerce-mini-cart__buttons a {
        font-size: 14px !important;
    }
}