/*
* Refactored Product Category styles originally from style.css – moved here for better organization 
*/

/*Snippets : Super Spensary Button Css Start */
.header-button-wrap {
    padding-left: 90px;
}

.header-button-inner-wrap {
    background-color: #00f6ff;
    padding: 2px 10px 2px 10px;
    border-radius: 10px;
}

a.button.header-button.button-size-small.button-style-outline {
    color: black;
}

#main-header .header-button {
    border: none!important;
}

.header-button-inner-wrap:hover {
    background-color: #ff00dd;
    padding: 2px 10px 2px 10px;
    border-radius: 10px;
}

.header-button-inner-wrap:hover a.button.header-button.button-size-small.button-style-outline {
    color: white;
}

.custom-button-wrapper {
    margin-bottom: 20px;
    border: 2px solid #00f6ff;
    width: fit-content;
    border-radius: 6px;
    padding: 4px 15px 4px 15px;
    font-size: 14px;
}

.custom-button-wrapper > a:hover{
    color: #00f6ff;
}
/*Snippets : Super Spensary Button Css End */


/**
 *  round corners on product archive page - filter and sort by buttons
 * 	Copy From Appearance-> customize (Theme) 
 */
.filter-toggle-open-container .filter-toggle-open.filter-toggle-style-bordered {
    border-radius: 1.5rem;
}
.kadence-shop-top-row .woocommerce-ordering select.orderby {
    /* font-size: 0.9375rem;
    font-weight: 700; */
    border-radius: 1.5rem;
    padding: 0.5rem 1rem;
    /* border-color: #020202; */
	background-image: none;
    /*border-top-style: solid;
    border-right-style: solid;
    border-left-style: solid; */
	text-align: center;
}
/*filter and sort by buttons Css End */

/* Product Category page start */
.woocommerce-products-header {
	margin-bottom: 15px;
}
#main .product-archive-title .archive-description p {
	font-size: 15px;
	font-weight: 400;
	line-height: 19.54px;
}
.woocommerce-products-header .custom-button-wrapper {
	margin: 0px 7px 7px 0px;
	border: 2px solid #6C44F0;
	width: auto;
	border-radius: 25px;
	padding: 7px 15px;
	display: inline-block;
}
.woocommerce-products-header .custom-button-wrapper a {
	font-family: Onest, sans-serif;
	font-size: 15px;
	font-weight: 500;
	line-height: 19.13px;
	text-decoration: none;
	color: #6C44F0;
}
.woocommerce-products-header .custom-button-wrapper a:hover {
	color: #5936C7;
}
.site-main .kadence-shop-top-row {
	justify-content: space-between;
}
.kadence-shop-top-row .filter-toggle-open-container .filter-toggle-open,
.kadence-shop-top-row .kadence-woo-ordering .select.orderby{
	font-weight: 500;
	font-family: Onest, sans-serif;
	Line-height:19.13px;
	font-size: 15px;
}
.kadence-shop-top-row  .filter-toggle-open-container .filter-toggle-open.filter-toggle-style-bordered,
.kadence-shop-top-row  .woocommerce-ordering select{
	border: 2px solid #020202;
	min-width: 191px;
	min-height: 43px;
	font-weight: 500;
	font-family: Onest, sans-serif;
	Line-height: 19.13px;
	font-size:15px
}
.kadence-shop-top-row  .kadence-woo-results-count{
	order: 1;
	width: 100%;
	margin-bottom: 10px;
	margin-top: 15px;
}
.kadence-shop-top-row .kadence-woo-results-count p{
	font-weight: 400;
	font-size: 15px;
	line-height:19.54px;
}
.kadence-shop-top-row  .kadence-woo-offcanvas-filter-area{
	order: 2;
}
.kadence-shop-top-row  .kadence-woo-ordering{
	order: 3;
}
.kadence-shop-top-row #filter-toggle{
	align-items: center;
	justify-content: center;
}
.kadence-shop-top-row #filter-toggle .kadence-svg-iconset svg{
	display: none;
}
.kadence-shop-top-row #filter-toggle .kadence-svg-iconset{
	background-image: url("../img/filter_icon.png");
	height: 24px;
	width: 24px;
	background-size: contain;
}
.su-expand.su-expand-link-style-default .su-expand-link a{
	font-size: 15px;
	font-weight: 600;
	line-height: 19.54px;
	text-decoration-line: underline;
	color: #000000 !important;
}
.su-expand.su-expand-link-style-default .su-expand-link a:hover{
	color: #5936C7 !important;
	border-color: #5936C7 !important;
}
.archive-description ul {
	margin-left: 0px;
}
.archive-description ul li{
	list-style: none;
	display: inline-block;
}
.archive-description ul li a{
	font-family: Onest, sans-serif;
	font-size: 15px;
	font-weight: 500;
	line-height: 19.13px;
	text-decoration: none;
	color: #6c44f0;
	border: 2px solid #6c44f0;
	padding: 7px 15px;
	border-radius: 25px;
	display: inline-block;
    margin: 0px 8px 10px 0px;
}
.archive-description ul li a:hover{
	background-color: #5936C7;
	border: 2px solid #5936C7;
	color: #fff;
}
.product-archive-title h1{
	font-weight: 600;
}
.product-archive-title h2{
	font-size: 1.5rem;
}
.product-archive-title h3{
	font-size: 1.4rem;
}
.archive-description h2{
	margin-top:0.5em;
	margin-bottom:0.5em;
}
@media (max-width: 767.9px){
	.archive-description ul{
		display: flex;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
		scrollbar-color: #6c44f0 #f1ecec;
		white-space: nowrap;
		padding-top: 15px;
	}
	.archive-description ul::-webkit-scrollbar-thumb {
		background-color: #888;
		border-radius: 5px;
	}
	.product-archive-title h1{
		font-size: 39px;
	}
	.tax-product_cat .archive-description p{
		font-size: 15px !important;
		line-height: 19px !important;
		margin-top: 5px;
	}
	.archive-description h2{
		font-size: 22px;
	}
	.tax-product_cat.woocommerce ul.products li.product .stamped-rating-text{
		font-size: 15px;
	}
}
@media only screen and (min-width: 401px) and (max-width: 445px)  {
	.kadence-shop-top-row  .filter-toggle-open-container .filter-toggle-open.filter-toggle-style-bordered,
	.kadence-shop-top-row  .woocommerce-ordering select{
		min-width: 171px;
	}
	.kadence-shop-top-row  .woocommerce-ordering ,
	.kadence-shop-top-row  .woocommerce-ordering select{
		min-width: 171px;
		max-width: 171px;
	}
}
@media (max-width: 400px){
	.kadence-shop-top-row  .filter-toggle-open-container .filter-toggle-open.filter-toggle-style-bordered,
	.kadence-shop-top-row  .woocommerce-ordering select{
		min-width: 141px;
	}
	.kadence-shop-top-row  .woocommerce-ordering ,
	.kadence-shop-top-row  .woocommerce-ordering select{
		min-width: 141px;
		max-width: 141px;
	}
}
/* Product Category page end */
 
/* d8-benefits Section on Category Archive Page start */
.d8-benefits{
	background-color: #020202;
	padding: 40px 100vw 40px 100vw;
	margin: 0 -100vw;
	margin-bottom: 30px;
	margin-top: 30px;
}
.d8-benefits > * {
	color: #fff;
}
.d8-benefits .d8-benefits--sub-heading{
	font-size: 20px;
	line-height: 36px;
	letter-spacing: 0.32px;
	padding: 5px 15px;
	text-align: center;
	border-color: #fff;
	border-top: 1.5px solid;
	border-bottom: 1.5px solid;
}
@media(max-width: 767.9px){
	.d8-benefits .d8-benefits--sub-heading{
		margin: 0 -15px;
	}
}
.d8-benefits .d8-benefits--heading{
	font-size: 30px;
	line-height: 38px;
	margin: 30px 0;
}
.d8-benefit-list{
	display: flex;
	flex-wrap: wrap;
	margin: 0 -20px;
}
.d8-benefit-list-item{
	padding: 0 20px;
	margin-bottom: 20px;
}
@media(min-width: 768px){
	.d8-benefit-list-item{
		flex: 0 0 auto;
		width: 33.33%;
	}
}
.d8-benefit-list-item .d8-benefit-list-item--heading{
	font-size: 21px;
	line-height: 26px;
	font-weight: 600;
	color: #fff;
}
.d8-benefit-list-item .d8-benefit-list-item--content{
	margin-top: 8px;
	font-size: 17px;
	line-height: 1.6;
}
@media(max-width: 991.9px){
	.d8-benefit-list-item .d8-benefit-list-item--content{
		font-size: 15px;
		line-height: 19px;
	}
}
.d8-benefits--image img{
	margin: 0 auto;
}
/* d8-benefits Section on Category Archive Page end */



/**
 *  Banner fix for brands Css Start
 * 	Copy From Appearance-> customize (Theme) 
 */
.yith-wcbr-brands-header-wrapper.alignwide {
    text-align: center;
}
.yith-wcbr-brands-header-wrapper.alignwide img {
    margin: auto;
    display: block;
    width: 100%; 
	/* Ensure the image scales down on smaller screens */
	max-width: 1400px; 
	/* Maximum width of the image */
}
/* Media query for mobile devices */
@media (max-width: 768px) {
    .yith-wcbr-brands-header-wrapper.alignwide img {
        width: auto; /* Adjust the width on mobile devices */
        max-width: 100%; /* Ensure the image doesn't overflow the screen width */
    }
    h4.giveaway-title {
        font-size: 16px;
    }
	/*ellipses on product loop titles*/
    .woocommerce-loop-product__title a{
        -webkit-line-clamp: 3; 
    }
}

/*ellipses on product loop titles*/
.woocommerce-loop-product__title a{
	display: -webkit-box;
	-webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}
/*  Banner fix for brands Css end */

/* Overlay */
.mobile-sort-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 9998;
    transition: opacity .25s ease;
}
.mobile-sort-overlay.active {
    display: block;
    opacity: 1;
}

/* Right Slide Sheet */
.mobile-sort-sheet {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    overflow-y: auto;
    transition: right .28s ease-in-out;
    box-shadow: -3px 0 18px rgba(0,0,0,0.12);
}
.mobile-sort-sheet.active {
    right: 0;
}

.mobile-sort-sheet .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px;
    border-bottom: 1px solid #ebebeb;
    font-size: 18px;
    font-weight: 600;
}

.sort-options label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    font-size: 16px;
    cursor: pointer;
    border-bottom: 1px solid #efefef;
}

/* Custom Radio */
.sort-options input[type="radio"] {
    width: 18px;
    height: 18px;
    appearance: none;
    border: 2px solid #999;
    border-radius: 50%;
    display: grid;
    place-content: center;
    transition: all .25s ease;
}
.sort-options input[type="radio"]::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transform: scale(0);
    background: #5936c7;
    transition: .25s ease;
}
.sort-options input[type="radio"]:checked {
    border-color: #5936c7;
}
.sort-options input[type="radio"]:checked::before {
    transform: scale(1);
}
button.open-sort-btn {
    border: 2px solid #020202;
    min-width: 130px;
    min-height: 43px;
    font-weight: 500;
    font-family: Onest, sans-serif;
    line-height: 19.13px;
    font-size: 15px;
    order: 4;
    border-radius:24px;
    align-items: center;
    justify-content: center;
    display: none;
}
button.open-sort-btn .kadence-svg-iconset svg {
    width: 24px;
    height: 20px;
}
.close-btn {
    background: none;
    color: #000;
}
@media screen and (max-width: 768px) {
    button.open-sort-btn {
        display: flex;
    }
    .kadence-shop-top-row .kadence-woo-ordering {
        display: none;
    }
}
/*
*/


/* 1. Make the image anchor tag the relative parent container */
body.tax-product_cat.term-super-value-picks ul.products  li.product a.d8-product-image {
    position: relative;
    display: block;
    overflow: hidden; /* Keeps the badge bounded inside the card */
    box-sizing: border-box;
}

/* 2. Inject and style the "Buy bulk & save" banner */
body.tax-product_cat.term-super-value-picks ul.products  li.product a.d8-product-image::before {
    content: "Buy bulk & save";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /* Design & Colors */
    background-color: #6c44f0; /* Bright purple from your screenshot */
    color: #ffffff;            /* White text */
    /* Typography */
    font-size: 20px;
    font-weight: 700;          /* Bold */
    text-align: center;
    /* Spacing & Layout */
    padding: 10px 0;
    z-index: 5;                /* Ensures it stays on top of the image */
    box-sizing: border-box;
	border-radius: 6px 6px 0px 0px;
    text-transform: none;      /* Ensures text stays exactly as typed */
}

/* 3. Push the product image down so the banner doesn't cover it */
body.tax-product_cat.term-super-value-picks ul.products  li.product a.d8-product-image img {
    margin-top: 15px;          /* Shifts image down by the height of the banner */
    display: block;
    width: 100%;
    height: auto;
}

/* Media query for mobile devices */
@media (max-width: 1024px) {
	body.tax-product_cat.term-super-value-picks ul.products  li.product a.d8-product-image::before {
		font-size: 16px;
	}
}