/* Blurred Backdrops */
.backdrop {
	position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(5px);
    background: rgba(0, 0, 0, 0.3);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.backdrop.active {
    opacity: 1;
    visibility: visible;
}

.backdrop.search_backdrop {
    z-index: 998; /* Below mini cart */
	pointer-events: none;

}

.backdrop.menu_backdrop {
    z-index: 998; /* Below mini cart */
}

/* Prevent Scrolling When Backdrops are Active */
body.backdrop-active {
    overflow: hidden;
}


/* Shop Header */

.woo-header-logo {
	display: flex; 
    align-items: center; 
    min-height: 1.25rem; 
}

.woo-header-logo a {
	display: flex; 
    align-items: center; 
    justify-content: center; 
    width: 100%; 
    height: 100%; 
}

.woo-header-logo a svg {
	width: 100%; 
    height: auto; 
    max-width: 100%; 
    max-height: 100%; 
}

header.shop_header#header {
	height: 3.5rem;
    bottom: 0;
    display: flex;
    visibility: visible;
    opacity: 1;
	z-index: 999;
}

header.shop_header#header .container {
	padding: .5rem;
	display: flex;
	justify-content: space-between;
	position: relative;
}
header.shop_header#header .container:before, header.shop_header#header .container:after {
	display:none;
}


/* Mini Cart Container */
.cart_icon {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #fff; /* Adjust based on your header background */
}

.cart_icon .cart_quantity {
    background-color: #ff5a5f;
    color: #fff;
    border-radius: 50%;
    position: absolute;
    top: -.55rem;
    right: -.55rem;
    transition: background-color .3s ease, transform .3s ease;
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
	font-size: .8rem;
}

.cart_icon .cart_quantity.animate {
    transform: scale(1.3);
}

.cart_icon .cart_quantity:hover {
    background-color: #e04e51;
	cursor: pointer;
}
.cart_icon .cart_toggle {
	font-size: 1.25rem;
    background: unset;
    color: white;
    border: none;
}

.cart_icon svg {
    font-size: 1.5rem;
    transition: color 0.3s ease;
}
.cart_toggle:hover {
	cursor: pointer;
}
.cart_icon:hover .cart_quantity{
	background-color: #e04e51;
	
}

/* Mini Cart Dropdown */
.widget_shopping_cart_content {
	opacity: 0;
	position: absolute; /* Adjust as needed */
	background-color: white;
	color:black;
	display:flex;
	border-radius: 12px;
	box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1), 
            0 4px 6px rgba(0, 0, 0, 0.05);
	transition: opacity 0.2s ease-in-out, transform 0.5s ease-in-out;
	right: 0;
	top: 0;
    min-width: 30rem;
    min-height: 150px;
    z-index: 999;
	flex-direction: column;
	padding: 1.5rem;
}
.widget_shopping_cart_content ul.woocommerce-mini-cart.cart_list li.woocommerce-mini-cart-item a:not(.remove) {
	align-items: center;
    display: flex;
    flex-direction: row-reverse;
	justify-content: flex-end;
	margin-left:1rem;
	width: 100%;
}
.widget_shopping_cart_content ul.woocommerce-mini-cart.cart_list li.woocommerce-mini-cart-item .quantity {
	margin-left: 1rem;
    white-space: nowrap;
}
.widget_shopping_cart_content .woocommerce-mini-cart__total.total {
	margin-top: auto;
}
.woocommerce-mini-cart-item img.attachment-woocommerce_thumbnail {
    width: 32px;
    height: auto;
    margin-left:auto!important;
}
/* Open state */
.widget_shopping_cart_content.is-open {
	opacity: 1;
	transform: translate(0, 4rem);
}

.woocommerce-mini-cart__empty-message {
	align-self: center;
	margin: auto;
}

.widget_shopping_cart_content .woocommerce-mini-cart__buttons a {
    color: white;
    background-color: rgb(37 99 235 / var(--tw-bg-opacity, 1));
    padding: .75rem 2rem;
    border-radius:.375rem;
}

.widget_shopping_cart_content .woocommerce-mini-cart__buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

/* Responsive Styles for Mobile Devices */
@media screen and (max-width: 992px) {
	.shop_nav {
		display:flex;
		justify-content: flex-end;
	}
	.shop_nav .shop_nav_inner{
		display:none;
	}
	.responsive_shop_nav_items_wrap {
		display: flex;
    	justify-content: space-between;
    	align-items: center;
	}
	.responsive_shop_nav_items_wrap .search_bar_shop svg, .responsive_shop_nav_items_wrap .cart_icon .cart_toggle svg, .responsive_shop_nav_items_wrap .responsive_shop_nav svg  {
		margin-left: 2rem;
		font-size:1.5rem;
	}
	.responsive_shop_nav_items_wrap .search_bar_shop .search_bar_shop_inner .search_bar_shop_wrap svg {
		margin: 0 1rem 0 0;
	}
	.cart_icon .cart_toggle svg {
		font-size: 1.25rem;
	}
    /* Hide Search Bar by Default */
    .responsive_shop_nav_items_wrap .search_bar_shop {
        display: block;
        font-size: 1.5rem;
        align-self: center;
		width: 100%;
    }
	.search_bar_shop_wrap {
		width: 100%;
		display:flex;
		align-items: center;
	}
	.search_bar_shop_inner {
		margin-left: auto;
	}
	.search_bar_shop .search_bar_shop_inner .widget_custom_shop_search_widget {
		width: 100%;
		margin: 0 2rem;
	}

    /* Adjust Mini Cart for Mobile */
    .widget_shopping_cart_content {
		bottom: 0;
        left: 50%;
        transform: translate(-50%, 25%);
        z-index: 1000;
        width: 90%;
        top: unset;
        height: unset;
    }

	/* Open state */
	.widget_shopping_cart_content.is-open {
		opacity: 1;
		transform: translate(-50%, -5.5rem);
	}
	
	.mini_cart_backdrop.is-open {
		opacity: 1;
		pointer-events: auto;
	}
    /* Adjust Backdrop */
    .backdrop.search_backdrop {
        position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background-color: rgba(0, 0, 0, 0.5); /* Adjust opacity as needed */
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.3s ease;
		z-index: 9998; /* Adjust z-index as needed */
		z-index: 999;
    }
	.mini_cart_backdrop.is-open {
		opacity: 1;
		/* Keep visibility and pointer-events out */
	}

    /* Optional: Style Checkout Button for Mobile */
    .widget_shopping_cart_content .mini_cart_footer a.checkout-button {
        width: 100%; /* Full-width button */
        text-align: center;
    }

    /* Welcome User Group Menu Slide-In */
    .shop_account_menu__wrap {
        position: fixed;
        bottom: -100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        border-radius:12px;
        padding: 20px;
        transition: bottom 0.3s ease;
        z-index: 999;
    }

    .shop_account_menu__wrap.active {
        bottom: 0;
    }

    /* "Main Site" Link Styling Inside Welcome User Group */
    .welcome_user_group .return_to_main_site {
        margin-top: 15px;
        display: block;
        color: #fff; /* Adjust based on your design */
        text-decoration: none;
    }

    .welcome_user_group .return_to_main_site:hover {
        color: #ff5a5f; /* Accent color on hover */
    }
}

/* Mini Cart Items */
.widget_shopping_cart_content ul.cart_list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_shopping_cart_content ul.cart_list li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.widget_shopping_cart_content ul.cart_list li .cart_item_image img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 15px;
}

.widget_shopping_cart_content ul.cart_list li .cart_item_info {
    flex: 1;
}

.widget_shopping_cart_content ul.cart_list li .cart_item_info .product-name {
    font-size: 1rem;
    margin-bottom: 5px;
    font-family: 'Libre Franklin', sans-serif; /* Ensure font is loaded */
    font-weight: 500;
}

.widget_shopping_cart_content ul.cart_list li .cart_item_info .product-price {
    font-size: 0.9rem;
    color: #666;
    font-family: 'Raleway', sans-serif; /* Ensure font is loaded */
}

/* Remove Button */
.widget_shopping_cart_content ul.cart_list li .remove {
    color: #ff5a5f;
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.3s ease;
    min-width: 1em;
    min-height: 1em;
}

.widget_shopping_cart_content ul.cart_list li .remove:hover {
    color: #e04e51;
}

/* Mini Cart Footer */
.widget_shopping_cart_content .mini_cart_footer {
    border-top: 1px solid #eee;
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget_shopping_cart_content .mini_cart_footer a.checkout-button {
    background-color: #ff5a5f;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.widget_shopping_cart_content .mini_cart_footer a.checkout-button:hover {
    background-color: #e04e51;
}