.bb-product-card,
.bb-product-card * {
	box-sizing: border-box;
}

.bb-product-card {
	--bb-card-primary: #6541f5;
	--bb-card-primary-dark: #4d2fd2;
	--bb-card-blue: #2f63f5;
	--bb-card-blue-dark: #194bd8;
	--bb-card-green: #32b94f;
	--bb-card-green-dark: #1f9c3b;
	--bb-card-border: #e7e4f4;
	--bb-card-text: #171820;
	--bb-card-muted: #747681;
	--bb-card-soft: rgba(101, 65, 245, 0.07);
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	min-width: 0;
	height: 100%;
	overflow: hidden;
	direction: rtl;
	border: 1px solid var(--bb-card-border);
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 3px 8px rgba(16, 24, 40, 0.025), 0 14px 38px rgba(16, 24, 40, 0.06);
	transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.bb-product-card:hover {
	z-index: 10;
	border-color: rgba(101, 65, 245, 0.6);
	box-shadow: 0 10px 22px rgba(16, 24, 40, 0.08), 0 26px 55px rgba(101, 65, 245, 0.16);
	transform: translateY(-6px) scale(1.01);
}

.bb-product-card__media {
	position: relative;
	width: 100%;
	height: 245px;
	overflow: hidden;
	border-bottom: 1px solid #efedf7;
	background: radial-gradient(circle at center, #fff 0%, #fff 48%, rgba(101, 65, 245, 0.045) 100%);
}

.bb-product-card__image-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 8px;
	text-decoration: none !important;
}

.bb-product-card__image-link img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	max-height: 100% !important;
	margin: auto !important;
	object-fit: contain;
	object-position: center;
	border: 0 !important;
	box-shadow: none !important;
	transform: scale(1.06);
	transition: transform 0.35s ease;
}

.bb-product-card:hover .bb-product-card__image-link img {
	transform: scale(1.12);
}

.bb-product-card__badge {
	position: absolute;
	top: 13px;
	right: 13px;
	z-index: 5;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 30px;
	padding: 4px 11px;
	border-radius: 999px;
	color: #fff;
	font-size: 11px;
	font-weight: 900;
	line-height: 1.5;
	box-shadow: 0 5px 15px rgba(16, 24, 40, 0.08);
}

.bb-product-card__badge--sale {
	background: linear-gradient(135deg, #8a63ff, var(--bb-card-primary-dark));
}

.bb-product-card__badge--unavailable {
	background: #92949d;
}

.bb-product-card__wishlist {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 6;
}

.bb-product-card__wishlist .add-to-wishlist {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 39px;
	height: 39px;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid rgba(25, 27, 36, 0.08) !important;
	border-radius: 50%;
	color: #4a4c55;
	background: rgba(255, 255, 255, 0.94);
	box-shadow: 0 5px 15px rgba(16, 24, 40, 0.1);
	backdrop-filter: blur(7px);
	-webkit-backdrop-filter: blur(7px);
	transition: transform 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.bb-product-card__wishlist .wishlist-heart {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px !important;
	line-height: 1 !important;
	pointer-events: none;
}

.bb-product-card__wishlist .add-to-wishlist:hover,
.bb-product-card__wishlist .add-to-wishlist.active {
	color: #ec416b;
	background: #fff3f6;
	transform: scale(1.06);
}

.bb-product-card__quick-view {
	position: absolute;
	right: 50%;
	bottom: 14px;
	z-index: 5;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 39px;
	padding: 7px 15px;
	border: 0;
	border-radius: 999px;
	color: #fff !important;
	background: linear-gradient(135deg, #7354ff, #4d2fd2);
	font-size: 11px;
	font-weight: 900;
	text-decoration: none !important;
	box-shadow: 0 10px 25px rgba(101, 65, 245, 0.25);
	opacity: 0;
	visibility: hidden;
	transform: translateX(50%) translateY(13px);
	transition: opacity 0.24s ease, visibility 0.24s ease, transform 0.24s ease;
}

.bb-product-card__quick-view svg {
	width: 17px;
	height: 17px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.bb-product-card:hover .bb-product-card__quick-view {
	opacity: 1;
	visibility: visible;
	transform: translateX(50%) translateY(0);
}

.bb-product-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
	padding: 14px 15px;
}

.bb-product-card__title {
	display: -webkit-box;
	min-height: 54px;
	margin: 0 0 10px !important;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	color: var(--bb-card-text);
	font-size: 13px;
	font-weight: 800;
	line-height: 1.9;
	text-align: right;
}

.bb-product-card__title a {
	color: inherit !important;
	text-decoration: none !important;
}

.bb-product-card__meta {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.bb-product-card__sku,
.bb-product-card__updated {
	display: flex;
	align-items: center;
	gap: 7px;
	min-width: 0;
	color: var(--bb-card-muted);
	font-size: 10px;
	font-weight: 700;
	line-height: 1.7;
}

.bb-product-card__sku {
	width: max-content;
	max-width: 100%;
	min-height: 31px;
	padding: 5px 9px;
	border: 1px solid rgba(101, 65, 245, 0.12);
	border-radius: 9px;
	color: #4c4380;
	background: var(--bb-card-soft);
}

.bb-product-card__sku svg,
.bb-product-card__updated svg {
	flex: 0 0 auto;
	width: 15px;
	height: 15px;
	fill: none;
	stroke: var(--bb-card-primary);
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.bb-product-card__sku bdi {
	overflow: hidden;
	font-weight: 900;
	direction: ltr;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bb-product-card__updated {
	min-height: 30px;
	padding: 0 4px;
}

.bb-product-card__price-area {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 84px;
	margin-top: auto;
	margin-bottom: 14px;
	padding-top: 12px;
	border-top: 1px solid #eceaf3;
}

.bb-product-card__normal-price,
.bb-product-card__old-price,
.bb-product-card__inquiry {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.bb-product-card__normal-price span,
.bb-product-card__old-price span {
	color: var(--bb-card-muted);
	font-size: 10px;
	font-weight: 700;
}

.bb-product-card__normal-price strong,
.bb-product-card__new-price {
	color: #1ea64a;
	font-size: 18px;
	font-weight: 950;
	line-height: 1.75;
}

.bb-product-card__sale-prices {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.bb-product-card__old-price del {
	color: #a0a3ad;
	font-size: 11px;
	font-weight: 700;
}

.bb-product-card__inquiry {
	width: 100%;
	color: #23a046;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.9;
}

.bb-product-card__inquiry svg {
	flex: 0 0 auto;
	width: 21px;
	height: 21px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.bb-product-card__unavailable-message {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 56px;
	padding: 8px;
	border: 1px solid #e5e5e9;
	border-radius: 11px;
	color: #74767e;
	background: #f7f7f8;
	font-size: 10px;
	font-weight: 700;
	text-align: center;
}

.bb-product-card__cta {
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 50px;
	margin: 0 !important;
	padding: 11px 14px !important;
	border: 0 !important;
	border-radius: 13px !important;
	color: #fff !important;
	font-family: inherit;
	font-size: 13px !important;
	font-weight: 900 !important;
	line-height: 1.6;
	text-decoration: none !important;
	transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.bb-product-card__cta--cart {
	background: linear-gradient(135deg, var(--bb-card-blue), var(--bb-card-blue-dark)) !important;
	box-shadow: 0 10px 24px rgba(47, 99, 245, 0.18);
}

.bb-product-card__cta--inquiry {
	background: linear-gradient(135deg, var(--bb-card-green), var(--bb-card-green-dark)) !important;
	box-shadow: 0 10px 24px rgba(50, 185, 79, 0.18);
}

.bb-product-card__cta--cart:hover,
.bb-product-card__cta--inquiry:hover {
	color: #fff !important;
	transform: translateY(-2px);
	filter: brightness(0.98);
}

.bb-product-card__cta--disabled {
	background: #a3a5ab !important;
	cursor: not-allowed;
}

@media (max-width: 991px) {
	.bb-product-card__media {
		height: auto;
		aspect-ratio: 1 / 0.9;
	}

	.bb-product-card:hover {
		transform: none;
	}

	.bb-product-card__cta {
		min-height: 48px;
		font-size: 12px !important;
	}
}

@media (max-width: 600px) {
    span.bb-product-card__sku {
        display: none;
    }
    
    span.bb-product-card__updated span {
        font-size: 12px !important;
    }
	.bb-product-card {
		border-radius: 18px;
	}

	.bb-product-card__quick-view {
		display: none;
	}

	.bb-product-card__body {
		padding: 12px;
	}

	.bb-product-card__title {
		font-size: 12px;
	}
}
/* ==================================================
   برابر کردن ارتفاع کارت‌های سوییپر صفحه اصلی
================================================== */

.dicount-product .swiper-wrapper {
    align-items: stretch !important;
}

/* خود اسلایدها به اندازه بلندترین اسلاید کشیده شوند */
.dicount-product .swiper-slide {
    display: flex !important;
    align-items: stretch !important;

    height: auto !important;
    min-height: 0 !important;
}

/* عنصر واسط ووکامرس باید ارتفاع اسلاید را بگیرد */
.dicount-product .swiper-slide > li.bb-product-item {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    align-self: stretch !important;

    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;

    height: auto !important;
    min-height: 100% !important;

    margin: 0 !important;
    padding: 0 !important;
    float: none !important;

    list-style: none !important;
}

/* کارت سفید تمام ارتفاع li را پر کند */
.dicount-product .swiper-slide > li.bb-product-item > .bb-product-card {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;

    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;

    margin: 0 !important;
}

/* بدنه کارت فضای باقی‌مانده را پر کند */
.dicount-product .bb-product-card__body {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;

    width: 100%;
    min-height: 0;
}

/* بخش قیمت به پایین بدنه هل داده شود */
.dicount-product .bb-product-card__price-area {
    margin-top: auto !important;
}

/* دکمه همیشه پایین کارت قرار بگیرد */
.dicount-product .bb-product-card__cta {
    flex: 0 0 auto !important;
    margin-top: 0 !important;
}