/* BDPF – Dynamic Product Filter frontend styles */

/* Fallback in case the active theme doesn't already provide this WP core
   utility class — keeps circle-only swatches accessible either way. */
.bdpf-widget .screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.bdpf-widget {
	--bdpf-accent: #2271b1;
	--bdpf-border: #d9dde3;
	--bdpf-text: inherit;
	font-size: 15px;
	color: var(--bdpf-text);
}

.bdpf-notice {
	padding: 10px 12px;
	background: #fcf3cd;
	border: 1px solid #e5c76b;
	border-radius: 4px;
	font-size: 13px;
	margin-bottom: 12px;
}

.bdpf-heading {
	margin: 0 0 16px;
}

/* Optional heading shown between the category list and the filter controls
   (editable via the widget's "Filters Heading" control). */
.bdpf-filters-heading {
	margin: 28px 0 16px;
	font-size: 18px;
	font-weight: 700;
}

.bdpf-group {
	margin-bottom: 13px;
}

.bdpf-group__title {
	margin: 0 0 10px;
	font-size: 15px;
	font-weight: 600;
}

button.bdpf-group__title.bdpf-group__toggle:hover, button.bdpf-group__title.bdpf-group__toggle:focus {
    background: transparent;
}
button.bdpf-group__title.bdpf-group__toggle:hover span.bdpf-group__title-text {
    background: #f7f2f4;
    color: #000;
    border-radius: 20px;
    padding-left: 10px;
}

/* ---- Collapsible groups (every group except the category selector) ---- */
/* The heading doubles as a show/hide toggle: a "+"/"−" indicator followed by
   the label. Clicking it reveals or hides the control (.bdpf-group__body). */

.bdpf-group__toggle {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	color: inherit;
	text-align: left;
	cursor: pointer;
}

.bdpf-group__toggle::before {
	content: '+';
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	font-size: 18px;
	font-weight: 400;
	line-height: 1;
	color: black;
}

.bdpf-group__toggle::before:hover{
	color: black;
}

.bdpf-group--collapsible:not(.is-collapsed) > .bdpf-group__toggle::before {
	content: '\2212'; /* − minus */
}

.bdpf-group__title-text {
	flex: 1 1 auto;
	color: black;
}

.bdpf-group__title-text:hover{
	color: black;
}

.bdpf-group__title-text:focus{
	color: black !important;
}

.bdpf-group__body {
	margin-top: 12px;
}

.bdpf-group__body[hidden] {
	display: none;
}

.bdpf-select {
	width: 75%;
    max-width: 100%;
    padding: 5px 10px;
    border: 1px solid #a72039;
    border-radius: 40px;
    background: #fff;
    margin-left: 10%;
}

.bdpf-options {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bdpf-options li {
	margin: 0 0 6px;
}

.bdpf-option {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	line-height: 1.4;
}

.bdpf-option input {
	margin: 0;
	accent-color: var(--bdpf-accent);
}

.bdpf-count {
	opacity: 0.6;
	font-size: 0.85em;
}

/* ---- Price range (dual-handle slider) ---- */

.bdpf-price-range__track {
	position: relative;
	height: 4px;
	margin: 10px 2px 0;
	border-radius: 2px;
	background: var(--bdpf-border);
}

.bdpf-price-range__fill {
	position: absolute;
	top: 0;
	height: 100%;
	background: #a72039;
	border-radius: 2px;
}

/* Two overlapping native range inputs share one visual track: each is
   transparent and full-width, only its thumb is interactive/visible. */
.bdpf-price-range__slider {
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	margin: 0;
	transform: translateY(-50%);
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
	pointer-events: none;
}

.bdpf-price-range__slider::-webkit-slider-runnable-track {
	-webkit-appearance: none;
	background: transparent;
	height: 4px;
}

.bdpf-price-range__slider::-moz-range-track {
	background: transparent;
	height: 4px;
	border: 0;
}

.bdpf-price-range__slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	pointer-events: auto;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid var(--bdpf-accent);
	cursor: pointer;
	margin-top: -6px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.bdpf-price-range__slider::-moz-range-thumb {
	pointer-events: auto;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid var(--bdpf-accent);
	cursor: pointer;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.bdpf-price-range__values {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 14px;
	font-size: 13px;
}

.bdpf-price-range__sep {
	opacity: 0.5;
}

/* ---- Range inputs (manual min/max, e.g. Height) ---- */

.bdpf-range-inputs {
	display: flex;
	align-items: center;
	gap: 8px;
}

.bdpf-range-input {
	width: 0;
	flex: 1 1 0;
	min-width: 0;
	padding: 8px 10px;
	border: 1px solid var(--bdpf-border);
	border-radius: 4px;
	background: #fff;
	font: inherit;
	color: inherit;
}

.bdpf-range-sep {
	flex: 0 0 auto;
	opacity: 0.5;
}

/* ---- Category tree (expandable, "+"/"−" subcategory toggles) ---- */

.bdpf-category-tree {
	margin-top: 4px;
}

.bdpf-cat-all {
	display: block;
	width: 100%;
	text-align: left;
	padding: 10px 14px;
	margin-bottom: 14px;
	border: 0;
	border-radius: 6px;
	background: rgba(0, 0, 0, 0.05);
	color: inherit;
	font: inherit;
	font-size: 14px;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.bdpf-cat-all:hover {
	background: #f7f2f4;
	color: black;
}

.bdpf-cat-all:focus{
	background: #f7f2f4;
	color: black;
	border-radius: 20px;
}

.bdpf-cat-all.is-active {
	background: #f7f2f4;
	color: #000;
	border-radius: 20px;
}



.bdpf-cat-tree,
.bdpf-cat-children {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bdpf-cat-children {
	padding-left: 26px;
	margin-top: 8px;
}

.bdpf-cat-node {
	margin: 0 0 4px;
}

.bdpf-cat-node:last-child {
	margin-bottom: 0;
}

.bdpf-cat-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	margin-right: 8px;
	border: 0;
	background: transparent;
	color: inherit;
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	vertical-align: middle;
}

.bdpf-cat-toggle:hover{
	background: transparent;
	color: black;
}

.bdpf-cat-toggle:focus{
	background: transparent;
	color: black;
}

.bdpf-cat-toggle::before {
	content: '+';
}

.bdpf-cat-toggle.is-open::before {
	content: '\2212';
}

.bdpf-cat-toggle--spacer {
	cursor: default;
	display: none;
}

.bdpf-cat-toggle--spacer::before {
	content: '';
}

.bdpf-cat-label {
	display: inline-block;
	border: 0;
	background: transparent;
	padding: 4px 8px;
	margin: -4px -8px;
	border-radius: 4px;
	font: inherit;
	font-size: 14px;
	color: #000000;
	cursor: pointer;
	text-align: left;
	vertical-align: middle;
	transition: background-color 0.15s ease;
}

.bdpf-cat-label:hover {
	background-color: #f7f2f4;
    color: #000;
    border-radius: 20px;
}

.bdpf-cat-label.is-active {
	font-weight: 700;
	color: inherit;
}

.bdpf-cat-label.is-active:focus{
	background-color: #f7f2f4;
	border-radius: 20px;
}

.bdpf-cat-children[hidden] {
	display: none;
}

.bdpf-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.bdpf-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border: 1px solid var(--bdpf-border);
	border-radius: 4px;
	background: #fff;
	cursor: pointer;
	font: inherit;
	color: inherit;
	transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.bdpf-btn:hover {
	border-color: var(--bdpf-accent);
}

.bdpf-btn.is-active {
	border-color: var(--bdpf-accent);
	background: var(--bdpf-accent);
	color: #fff;
}

.bdpf-btn.is-active .bdpf-count {
	opacity: 0.85;
}

/* Color/image swatches: circle-only, no visible text label. */
.bdpf-swatch {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	transition: border-color 0.15s ease, transform 0.1s ease;
}

.bdpf-swatch:hover {
	border-color: var(--bdpf-border);
	transform: scale(1.08);
}

.bdpf-swatch.is-active {
	border-color: var(--bdpf-accent);
}

.bdpf-swatch__dot {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background-color: var(--bdpf-swatch-color, #ccc);
	background-image: var(--bdpf-swatch-image, none);
	background-size: cover;
	background-position: center;
	border: 1px solid rgba(0, 0, 0, 0.15);
	flex: 0 0 auto;
}

.bdpf-active {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 16px 0;
}

.bdpf-active__label {
	font-weight: 600;
	font-size: 13px;
}

.bdpf-active__list {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 6px;
}

.bdpf-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 8px;
	background: rgba(0, 0, 0, 0.05);
	border-radius: 99px;
	font-size: 13px;
}

.bdpf-chip__remove {
	border: 0;
	background: transparent;
	cursor: pointer;
	padding: 0 2px;
	line-height: 1;
	font-size: 15px;
	color: inherit;
	opacity: 0.7;
}

.bdpf-chip__remove:hover {
	opacity: 1;
}

.bdpf-clear {
	display: inline-block;
	padding: 8px 16px;
	border: 1px solid #A72039;
	background: #A72039;
	color: white;
	border-radius: 50px;
	cursor: pointer;
	font: inherit;
	font-weight: 600;
}

.bdpf-clear:hover {
	background: #78061B;
	color: #fff;
}

/* Loading state */
.bdpf-loading {
	opacity: 0.45;
	pointer-events: none;
	transition: opacity 0.15s ease;
}

.bdpf-no-results {
	padding: 24px;
	text-align: center;
	background: rgba(0, 0, 0, 0.03);
	border-radius: 6px;
	margin: 0 0 16px;
}

/* Mobile toggle button (hidden on desktop) */
.bdpf-mobile-toggle {
	display: none;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--bdpf-border);
	border-radius: 6px;
	background: #fff;
	cursor: pointer;
	font: inherit;
	font-weight: 600;
	margin-bottom: 12px;
}

.bdpf-mobile-toggle__count {
	background: #A72039;
	color: #fff;
	border-radius: 99px;
	font-size: 6px;
	min-width: 6px;
	height: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 6px;
}

@media (max-width: 767px) {
	.bdpf-widget--mobile-panel .bdpf-mobile-toggle {
		display: flex;
	}

	.bdpf-widget--mobile-panel .bdpf-mobile-toggle:hover{
		background-color: #f7f2f4;
		color: black;
	}

	.bdpf-widget--mobile-panel .bdpf-mobile-toggle:focus{
		background-color: #f7f2f4;
		color: #000;
	}

	.bdpf-widget--mobile-panel .bdpf-mobile-toggle:hover .bdpf-mobile-toggle__label {
    	color: #A72039;
	}

	.bdpf-widget--mobile-panel .bdpf-panel {
		display: none;
		border: 1px solid var(--bdpf-border);
		border-radius: 6px;
		padding: 16px;
		background: #fff;
	}

	.bdpf-widget--mobile-panel.is-open .bdpf-panel {
		display: block;
		overflow: hidden;
	}

	.bdpf-heading{
		font-size: 22px;
	}
}

/* ------------------------------------------------------------------ */
/* Native Product Grid (BDPF_Grid_Widget)                              */
/* Lean, dependency-free card markup — no Elementor per-widget wrapper */
/* overhead, built on WooCommerce's own standard loop hooks.           */
/* ------------------------------------------------------------------ */

.bdpf-grid {
	--bdpf-grid-columns: 3;
	--bdpf-grid-gap: 20px;
	--bdpf-accent: #2271b1;
	--bdpf-border: #d9dde3;
	position: relative;
}

.bdpf-cards {
	display: grid;
	grid-template-columns: repeat(var(--bdpf-grid-columns), 1fr);
	gap: var(--bdpf-grid-gap);
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (max-width: 991px) {
	.bdpf-cards {
		grid-template-columns: repeat(min(2, var(--bdpf-grid-columns)), 1fr);
	}
}

@media (max-width: 550px) {
	.bdpf-cards {
		grid-template-columns: 1fr 1fr;
	}
}

.bdpf-card {
	display: flex;
	flex-direction: column;
	position: relative;
	border-radius: 6px;
	overflow: hidden;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.bdpf-card img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bdpf-card a {
	color: inherit;
	text-decoration: none;
}

/* ---- Image gallery: square main viewport + thumbnail strip ---- */

.bdpf-card-gallery__viewport {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	background: #f4f4f4;
	overflow: hidden;
	cursor: grab;
	touch-action: pan-y;
	user-select: none;
	-webkit-user-select: none;
}

.bdpf-card-gallery__viewport:active,
.bdpf-card-gallery__viewport.is-dragging {
	cursor: grabbing;
}

.bdpf-card-gallery__track {
	display: flex;
	flex-wrap: nowrap;
	position: relative;
	width: 100%;
	height: 100%;
	transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
	will-change: transform;
	touch-action: pan-y;
}

.bdpf-card-gallery__slide {
	flex: 0 0 100%;
	min-width: 100%;
	width: 100%;
	height: 100%;
	position: relative;
}

.bdpf-card-gallery__slide.is-active {
	flex: 0 0 100%;
	width: 100%;
	height: 100%;
	position: relative;
	display: block;
	opacity: 1;
	visibility: visible;
}

.bdpf-card-gallery__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 30px;
	height: 30px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: #eee;
	color: #333;
	cursor: pointer;
	padding: 5px !important;
	z-index: 2;
	opacity: 0;
	padding: 5px !important;
	transition: opacity 0.15s ease, background-color 0.15s ease;
}


.bdpf-card-gallery__viewport:hover .bdpf-card-gallery__slide img{
   transform: scale(1.05);    
   filter: brightness(0.85);
} 

.bdpf-card-gallery__viewport .bdpf-card-gallery__slide img{
    transition: transform 0.35s ease, filter 0.35s ease;
	pointer-events: none;
    -webkit-user-drag: none;
}


.bdpf-card-gallery__viewport{
    border-radius: 14px;
}
	

.bdpf-card-gallery:hover .bdpf-card-gallery__nav {
	opacity: 1;
}

.bdpf-card-gallery__nav--prev svg#left-arrow, .bdpf-card-gallery__nav--next svg#right-arrow{
    width: 12px;
}

.bdpf-card-gallery__nav:hover  {
	background: #ddd;
}

.bdpf-card-gallery__nav:focus  {
	background: #eee;
}

.bdpf-card-gallery__nav--prev {
	left: 8px;
}

.bdpf-card-gallery__nav--next {
	right: 8px;
}

.bdpf-card-gallery__thumbs {
	display: flex;
	gap: 6px;
	padding: 8px 4px 0;
	overflow-x: auto;
}

.bdpf-card-gallery__thumb {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1.5px solid transparent;
	border-radius: 4px;
	overflow: hidden;
	background: #f4f4f4;
	cursor: pointer;
	opacity: 0.7;
	transition: opacity 0.15s ease, border-color 0.15s ease;
}

.bdpf-card-gallery__thumb:hover {
	opacity: 1;
}

.bdpf-card-gallery__thumb.is-active {
	opacity: 1;
	border-color: #a72039;
}

/* ---- Title ---- */

.bdpf-card-title,
.bdpf-card .woocommerce-loop-product__title,
.bdpf-card .woocommerce-loop-category__title {
	display: block;
	font-size: 15px;
	font-weight: 600;
	margin: 12px 0 6px;
	padding: 0 12px;
}

/* ---- Availability rows ---- */

.bdpf-card-availability {
	list-style: none;
	margin: 0 0 8px;
	padding: 0 12px;
}

.bdpf-card-availability__item {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12.5px;
	line-height: 1.5;
	--bdpf-availability-icon-color: #4caf50;
}

.bdpf-card-availability__item--available {
	color: #000;
}

.bdpf-card-availability__item--unavailable {
	color: #e0393e;
	--bdpf-availability-icon-color: #e0393e;
}

.bdpf-card-availability__icon svg {
	display: inline-flex;
	color: #8EDA50;
	flex: 0 0 auto;
	fill: #8EDA50;
}

.bdpf-card-availability__label {
    padding-left: 5px;
}

/* ---- Actions: circular icon buttons (cart, wishlist) ---- */

.bdpf-card-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 4px 12px 10px;
}

.bdpf-grid .bdpf-card .bdpf-card-action .add_to_cart_button,
.bdpf-grid .bdpf-card .bdpf-card-action .tinvwl_add_to_wishlist_button {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 40px !important;
	height: 40px !important;
	border-radius: 50% !important;
	border: 0 !important;
	cursor: pointer !important;
	font-size: 0 !important;
	line-height: 0 !important;
	color: transparent !important;
	position: relative !important;
	overflow: hidden !important;
	padding: 0 !important;
	margin: 0 !important;
}

.bdpf-grid .bdpf-card .bdpf-card-action--cart .add_to_cart_button {
	background: #a72039 !important;
}

.bdpf-grid .bdpf-card .bdpf-card-action--cart .add_to_cart_button::before {
	content: "\eaae" !important;
	font-family: 'elementskit' !important;
	mask: none !important;
	background: transparent !important;
	color: #fff !important;
	font-style: normal !important;
	font-weight: 400 !important;
	font-variant: normal !important;
	text-transform: none !important;
	line-height: 1 !important;
	-webkit-font-smoothing: antialiased !important;
	font-size: 16px !important;
	display: inline-block !important;
}

.bdpf-card-action--cart .add_to_cart_button.loading::before {
	opacity: 0.4;
}

.bdpf-card-action--cart .add_to_cart_button.added::after {
	content: '';
	position: absolute;
	width: 16px;
	height: 16px;
	background-color: #fff;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l5 5 9-10' fill='none' stroke='%23fff' stroke-width='3'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l5 5 9-10' fill='none' stroke='%23fff' stroke-width='3'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
}


.bdpf-grid .bdpf-card .bdpf-card-action--wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart.no-txt {
	width: 40px !important;
	height: 40px !important;
}

.bdpf-grid .bdpf-card .bdpf-card-action--wishlist .tinvwl_add_to_wishlist_button {
	background: #a72039 !important;
}

/* Default state: Outline Heart */
.bdpf-grid .bdpf-card .bdpf-card-action--wishlist .tinvwl_add_to_wishlist_button::before {
	content: '' !important;
	position: absolute !important;
	width: 40px !important;
	height: 40px !important;
	background-color: #fff !important;
	transform: translate(-50%, -50%) !important;
	margin: 0px !important;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M12 21s-7.5-4.7-10.2-9.2C.3 9 1.4 5.6 4.6 4.4c2.1-.8 4.3 0 5.6 1.8l1.8 2.3 1.8-2.3c1.3-1.8 3.5-2.6 5.6-1.8 3.2 1.2 4.3 4.6 2.8 7.4C19.5 16.3 12 21 12 21z'/%3E%3C/svg%3E") center / 18px 18px no-repeat !important;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M12 21s-7.5-4.7-10.2-9.2C.3 9 1.4 5.6 4.6 4.4c2.1-.8 4.3 0 5.6 1.8l1.8 2.3 1.8-2.3c1.3-1.8 3.5-2.6 5.6-1.8 3.2 1.2 4.3 4.6 2.8 7.4C19.5 16.3 12 21 12 21z'/%3E%3C/svg%3E") center / 18px 18px no-repeat !important;
}

/* Added state: Solid/Filled Heart */
.bdpf-grid .bdpf-card .bdpf-card-action--wishlist .tinvwl_add_to_wishlist_button.tinvwl-added::before,
.bdpf-grid .bdpf-card .bdpf-card-action--wishlist .tinvwl_add_to_wishlist_button[data-tinv-wl-action="remove"]::before,
.bdpf-grid .bdpf-card .bdpf-card-action--wishlist .tinvwl_add_to_wishlist_button.tinvwl-product-in-list::before {
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M12 21s-7.5-4.7-10.2-9.2C.3 9 1.4 5.6 4.6 4.4c2.1-.8 4.3 0 5.6 1.8l1.8 2.3 1.8-2.3c1.3-1.8 3.5-2.6 5.6-1.8 3.2 1.2 4.3 4.6 2.8 7.4C19.5 16.3 12 21 12 21z'/%3E%3C/svg%3E") center / 18px 18px no-repeat !important;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M12 21s-7.5-4.7-10.2-9.2C.3 9 1.4 5.6 4.6 4.4c2.1-.8 4.3 0 5.6 1.8l1.8 2.3 1.8-2.3c1.3-1.8 3.5-2.6 5.6-1.8 3.2 1.2 4.3 4.6 2.8 7.4C19.5 16.3 12 21 12 21z'/%3E%3C/svg%3E") center / 18px 18px no-repeat !important;
}

.bdpf-grid .bdpf-card .bdpf-card-action--wishlist .tinvwl_add_to_wishlist_button.tinvwl-added,
.bdpf-grid .bdpf-card .bdpf-card-action--wishlist .tinvwl_add_to_wishlist_button[data-tinv-wl-action="remove"] {
	background: #a8262a !important;
}

.bdpf-card-action .tinvwl-tooltip {
	display: none;
}

/* ---- Badge / rating ---- */

.bdpf-card-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	background: var(--bdpf-accent, #7a1f2b);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	padding: 3px 8px;
	border-radius: 99px;
	z-index: 1;
}

.bdpf-card-rating {
	padding: 0 12px 4px;
}

.bdpf-card-rating .star-rating {
	margin: 0;
}

/* ---- Price ---- */

.bdpf-card-price,
.bdpf-card .price {
	padding: 0 12px 14px;
	font-size: 15px;
	font-weight: 600;
}

.bdpf-grid-no-results {
	padding: 24px;
	text-align: center;
	background: rgba(0, 0, 0, 0.03);
	border-radius: 6px;
	grid-column: 1 / -1;
}

.bdpf-grid-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-top: 24px;
}

.bdpf-grid-pagination--load-more {
	justify-content: center;
}

.bdpf-grid-page {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 12px;
	border: 1px solid var(--bdpf-border, #d9dde3);
	border-radius: 4px;
	background: #fff;
	cursor: pointer;
	font: inherit;
	font-size: 14px;
	color: inherit;
	transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.bdpf-grid-load-more{
	background-color: #A72039;
	color: white;
	font-weight: 600;
	padding: 8px 16px;
	border-radius: 20px;
	font-size: 16px;
	border: none;
}

.bdpf-grid-load-more:hover{
	background-color: #78061B;
}

.bdpf-grid-page:hover {
	border-color: var(--bdpf-accent, #2271b1);
}

.bdpf-grid-page.is-current {
	border-color: var(--bdpf-accent, #2271b1);
	background: var(--bdpf-accent, #2271b1);
	color: #fff;
}

.bdpf-grid.bdpf-loading {
	opacity: 0.55;
	pointer-events: none;
	transition: opacity 0.15s ease;
}

/* Category H1 title (shown above the All Categories button) */
.bdpf-category-title {
	margin: 0 0 8px;
	font-size: 1.5em;
	font-weight: 700;
	line-height: 1.3;
}

/* Category description (replaces bdpf-active when show_active is enabled) */
.bdpf-category-description {
	margin-top: 20px;
    margin-bottom: 20px;
	font-size: 0.9em;
	line-height: 1.6;
	color: inherit;
}

/* ---- Products Slider ---- */
.bdpf-products-slider {
	position: relative;
	width: 100%;
	display: flex;
    justify-content: center;
}

.bdpf-products-slider__viewport {
	width: 95%;
	overflow-x: auto;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none; /* Firefox */
	-ms-overflow-style: none; /* IE/Edge */
	padding: 10px 0;
	margin-left: 30px;
    margin-right: 30px;
}

.bdpf-products-slider__viewport::-webkit-scrollbar {
	display: none; /* Chrome/Safari */
}

.bdpf-products-slider__track {
	display: flex !important;
	flex-wrap: nowrap !important;
	gap: var(--bdpf-grid-gap, 20px) !important;
	width: 100% !important;
}

.bdpf-products-slider__slide {
	scroll-snap-align: start;
	/* Dynamically calculated width based on columns option */
	flex: 0 0 calc((100% - (var(--bdpf-grid-columns) - 1) * var(--bdpf-grid-gap, 20px)) / var(--bdpf-grid-columns)) !important;
	width: calc((100% - (var(--bdpf-grid-columns) - 1) * var(--bdpf-grid-gap, 20px)) / var(--bdpf-grid-columns)) !important;
	max-width: none !important;
}

/* Responsiveness adjustments for slider slide width */
@media (max-width: 1024px) {
	.bdpf-products-slider__slide {
		flex: 0 0 calc((100% - (2 - 1) * var(--bdpf-grid-gap, 20px)) / 2) !important;
		width: calc((100% - (2 - 1) * var(--bdpf-grid-gap, 20px)) / 2) !important;
	}
}

@media (max-width: 767px) {
	.bdpf-products-slider__slide {
		flex: 0 0 100% !important;
		width: 100% !important;
	}

	.bdpf-products-slider__viewport{
		margin: 0;
		width: 100%;
	}
}

.bdpf-products-slider__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border: 1px solid #A72039;
	border-radius: 50%;
	background: transparent;
	color: #000;
	cursor: pointer;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.2s, color 0.2s, transform 0.2s;
}

.bdpf-products-slider__nav:hover {
	background: #a72039;
	color: #fff;
	transform: translateY(-50%) scale(1.05);
}

.bdpf-products-slider__nav:focus{
	background: #a72039;
	color: #fff;
}

.bdpf-products-slider__nav svg {
	width: 18px;
	height: 18px;
}

.bdpf-products-slider__nav--prev {
	left: -22px;
}

.bdpf-products-slider__nav--next {
	right: -22px;
}

/* Hide navigation buttons on mobile if touch swiping is preferred */
@media (max-width: 767px) {
	.bdpf-products-slider__nav {
		display: flex !important;
	}
}