/* -----------------------------------------------------
 * کارت ارائه‌دهنده - مشترک بین ویجت شبکه و کاروسل
 * ----------------------------------------------------- */
 /* =========================================================
   Product Card
   ========================================================= */
.ir-elw-product-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0px 5px 10px -5px rgb(0 0 0 / 10%);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
	border: 1px solid var(--ir-color-2);
}

.ir-elw-product-card__image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.ir-elw-product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ir-elw-product-card:hover .ir-elw-product-card__image img {
    transform: scale(1.05);
}

.ir-elw-sale-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ef4444;
    color: #fff;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
}

.ir-elw-product-card__body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ir-elw-product-card__category {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 6px;
}

.ir-elw-product-card__category a {
    color: #94a3b8;
    text-decoration: none;
}

.ir-elw-product-card__title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.4;
}

.ir-elw-product-card__title a {
    color: #1f2430;
    text-decoration: none;
}

.ir-elw-product-card__title a:hover {
    color: var(--ir-color-primary);
}

.ir-elw-product-card__description {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 10px;
    line-height: 1.6;
}

.ir-elw-product-card__rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}

.ir-elw-product-card__rating .star-filled {
    color: #f59e0b;
}

.ir-elw-product-card__rating .star-empty {
    color: #d1d5db;
}

.ir-elw-product-card__rating .star-half {
    color: #f59e0b;
    position: relative;
}

.ir-elw-product-card__rating-count {
    font-size: 13px;
    color: #94a3b8;
    margin-right: 4px;
}

.ir-elw-product-card__price {
    font-size: 18px;
    font-weight: 700;
    color: var(--ir-color-primary);
    margin-bottom: 12px;
}

.ir-elw-product-card__price del {
    font-size: 14px;
    color: #94a3b8;
    font-weight: 400;
    margin-left: 8px;
}

.ir-elw-product-card__price ins {
    text-decoration: none;
}

.ir-elw-product-card__actions {
    padding: 10px 0;
}

.ir-elw-product-card__btn {
    display: inline-block;
    padding: 8px 20px;
    background: var(--ir-color-primary);
    color: #fff;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--ir-color-primary);
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
}

/* =========================================================
   پوسته مدرن - کارت محصول
   ========================================================= */
.ir-elw-product-card--modern {
	border: none;
	box-shadow: 0px 5px 10px -5px rgb(0 0 0 / 10%);
}

.ir-elw-product-card--modern:hover {
	transform: translateY(-4px);
	box-shadow: 0px 5px 10px -5px rgb(0 0 0 / 10%);
}

.ir-elw-product-card--modern .ir-elw-product-card__image {
	height: 210px;
}

.ir-elw-product-card--modern .ir-elw-product-card__body {
	position: relative;
	z-index: 2;
	margin-top: -28px;
	background: #fff;
	border-radius: 16px 16px 0 0;
	box-shadow: 0px 5px 10px -5px rgb(0 0 0 / 10%);
}

/* =========================================================
   پوسته جعبه هاوری - کارت محصول
   ========================================================= */
.ir-elw-product-card--hoverbox {
	position: relative;
	min-height: 300px;
	border: none;
}

.ir-elw-product-card--hoverbox:hover {
    transform: translateY(-6px);
	box-shadow: 0px 5px 10px -5px rgb(0 0 0 / 10%);
}

.ir-elw-product-card--hoverbox .ir-elw-product-card__image {
	position: absolute;
	inset: 0;
	height: 100%;
	z-index: 1;
}

.ir-elw-product-card--hoverbox .ir-elw-product-card__image::after {
	content: "";
	position: absolute;
	inset: 0;
	opacity: 0; /* 👈 شروع با opacity صفر */
	background: linear-gradient(to top, rgba(15,17,26,.90) 0%, rgba(15,17,26,.75) 70%, transparent 100%);
	transition: opacity 0.4s ease; /* 👈 fade رو نرم می‌کنه */
}

.ir-elw-product-card--hoverbox:hover .ir-elw-product-card__image::after {
	opacity: 1; /* 👈 در هاور کامل نمایان میشه */
}

.ir-elw-product-card--hoverbox .ir-elw-product-card__body {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    padding: 16px;
    color: #fff;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .35s ease, transform .35s ease;
    pointer-events: none;
    align-items: center;
    justify-content: flex-end;
}

.ir-elw-product-card--hoverbox:hover .ir-elw-product-card__body,
.ir-elw-product-card--hoverbox:focus-within .ir-elw-product-card__body {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.ir-elw-product-card--hoverbox .ir-elw-product-card__title a,
.ir-elw-product-card--hoverbox .ir-elw-product-card__description,
.ir-elw-product-card--hoverbox .ir-elw-product-card__price,
.ir-elw-product-card--hoverbox .ir-elw-product-card__rating-count {
	color: #fff;
}

.ir-elw-product-card--hoverbox .ir-elw-product-card__category, .ir-elw-product-card--hoverbox .ir-elw-product-card__category a {
    color: var(--ir-color-3);
    background: var(--ir-color-primary);
    border: none;
    margin-bottom: auto;
}

@media (hover: none) {
	.ir-elw-product-card--hoverbox .ir-elw-product-card__body {
		opacity: 1;
		transform: translateY(0);
		pointer-events: auto;
		background: linear-gradient(to top, rgba(15,17,26,.90) 0%, rgba(15,17,26,.75) 70%, transparent 100%);
	}
}

/* =========================================================
   Post Card
   ========================================================= */
.ir-elw-post-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0px 5px 10px -5px rgb(0 0 0 / 10%);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
	border: 1px solid var(--ir-color-2);
}

.ir-elw-post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0px 5px 10px -5px rgb(0 0 0 / 10%);
}

.ir-elw-post-card__image {
    height: 180px;
    overflow: hidden;
}

.ir-elw-post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ir-elw-post-card:hover .ir-elw-post-card__image img {
    transform: scale(1.05);
}

.ir-elw-post-card__body {
    padding: 16px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ir-elw-post-card__category {
    font-size: 12px;
    color: var(--ir-color-primary);
    margin-bottom: 6px;
    font-weight: 500;
}

.ir-elw-post-card__category a {
    color: var(--ir-color-primary);
    text-decoration: none;
}

.ir-elw-post-card__category a:hover {
    text-decoration: underline;
}

.ir-elw-post-card__title {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.4;
}

.ir-elw-post-card__title a {
    color: #1f2430;
    text-decoration: none;
}

.ir-elw-post-card__title a:hover {
    color: var(--ir-color-primary);
}

.ir-elw-post-card__excerpt {
    font-size: 13px;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 12px;
}

.ir-elw-post-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 12px;
}

.ir-elw-post-card__meta a {
    color: #94a3b8;
    text-decoration: none;
}

.ir-elw-post-card__meta a:hover {
    color: var(--ir-color-primary);
}

.ir-elw-post-card__meta .ir-elw-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-left: 4px;
}

.ir-elw-post-card__meta .ir-elw-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.ir-elw-post-card__author,
.ir-elw-post-card__date,
.ir-elw-post-card__comments {
    display: inline-flex;
    align-items: center;
}

.ir-elw-post-card__btn {
    display: inline-block;
    padding: 3px 15px;
    background: var(--ir-color-primary);
    color: #fff;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--ir-color-primary);
    transition: all 0.3s ease;
}


/* =========================================================
   پوسته مدرن - کارت مطلب
   ========================================================= */
.ir-elw-post-card--modern {
	border: none;
	box-shadow: 0px 5px 10px -5px rgb(0 0 0 / 10%);
}

.ir-elw-post-card--modern:hover {
	transform: translateY(-4px);
	box-shadow: 0px 5px 10px -5px rgb(0 0 0 / 10%);
}

.ir-elw-post-card--modern .ir-elw-post-card__image {
	height: 200px;
}

.ir-elw-post-card--modern .ir-elw-post-card__body {
	position: relative;
	z-index: 2;
	margin-top: -28px;
	background: #fff;
	border-radius: 16px 16px 0 0;
	box-shadow: 0px 5px 10px -5px rgb(0 0 0 / 10%);
}

/* =========================================================
   پوسته جعبه هاوری - کارت مطلب
   ========================================================= */
.ir-elw-post-card--hoverbox {
	position: relative;
	min-height: 300px;
	border: none;
}

.ir-elw-post-card--hoverbox:hover {
	transform: translateY(-6px);
	box-shadow: 0px 5px 10px -5px rgb(0 0 0 / 10%);
}

.ir-elw-post-card--hoverbox .ir-elw-post-card__image {
	position: absolute;
	inset: 0;
	height: 100%;
	z-index: 1;
}

.ir-elw-post-card--hoverbox .ir-elw-post-card__image::after {
	content: "";
	position: absolute;
	inset: 0;
	opacity: 0; /* 👈 شروع با opacity صفر */
	background: linear-gradient(to top, rgba(15,17,26,.90) 0%, rgba(15,17,26,.75) 70%, transparent 100%);
	transition: opacity 0.4s ease; /* 👈 fade نرم */
}

.ir-elw-post-card--hoverbox:hover .ir-elw-post-card__image::after {
	opacity: 1; /* 👈 در هاور کامل نمایان میشه */
}

.ir-elw-post-card--hoverbox .ir-elw-post-card__body {
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 16px;
	color: #fff;
	opacity: 0;
	transform: translateY(12px);
	transition: opacity .35s ease, transform .35s ease;
	pointer-events: none;
}

.ir-elw-post-card--hoverbox:hover .ir-elw-post-card__body,
.ir-elw-post-card--hoverbox:focus-within .ir-elw-post-card__body {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.ir-elw-post-card--hoverbox .ir-elw-post-card__title a,
.ir-elw-post-card--hoverbox .ir-elw-post-card__excerpt,
.ir-elw-post-card--hoverbox .ir-elw-post-card__meta,
.ir-elw-post-card--hoverbox .ir-elw-post-card__meta a {
	color: #fff;
}

.ir-elw-post-card--hoverbox .ir-elw-post-card__category, .ir-elw-post-card--hoverbox .ir-elw-post-card__category a {
    color: var(--ir-color-3);
    background: var(--ir-color-primary);
    align-self: flex-start;
    padding: 2px 5px;
    border-radius: 5px;
}

@media (hover: none) {
	.ir-elw-post-card--hoverbox .ir-elw-post-card__body {
		opacity: 1;
		transform: translateY(0);
		pointer-events: auto;
		background: linear-gradient(to top, rgba(15,17,26,.90) 0%, rgba(15,17,26,.75) 70%, transparent 100%);
	}
}

.ir-elw-card {
	--ir-elw-primary: var(--ir-color-primary);
	--ir-elw-amber: #f59e0b;
	--ir-elw-text: #1f2430;
	--ir-elw-muted: #6b7280;
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0px 5px 10px -5px rgb(0 0 0 / 10%);
	transition: transform .25s ease, box-shadow .25s ease;
	height: 100%;
}

.ir-elw-card__image {
	position: relative;
	height: 200px;
	overflow: hidden;
	background: #eef1f3;
}

.ir-elw-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .4s ease;
}

.ir-elw-card:hover .ir-elw-card__image img {
	transform: scale(1.06);
}

.ir-elw-card__badges {
	position: absolute;
	top: 10px;
	inset-inline-start: 10px;
	display: flex;
	gap: 6px;
}

.ir-elw-badge {
	font-size: 12px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .92);
	color: var(--ir-elw-text);
}

.ir-elw-badge--verified {
	background: var(--ir-elw-primary);
	color: #fff;
}

.ir-elw-card__content {
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 5px;
	flex: 1;
}

.ir-elw-card__category {
	font-size: 12px;
	font-weight: 600;
	color: var(--ir-elw-primary);
}

.ir-elw-card__title {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.5;
}

.ir-elw-card__title a {
	color: var(--ir-elw-text);
	text-decoration: none;
}

.ir-elw-card__title a:hover {
	color: var(--ir-elw-primary);
}

.ir-elw-card__location,
.ir-elw-card__phone {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: var(--ir-elw-muted);
}

.ir-elw-icon {
	display: inline-flex;
	width: 14px;
	height: 14px;
	flex: 0 0 auto;
}

.ir-elw-icon--pin::before { content: "📍"; font-size: 13px; }
.ir-elw-icon--phone::before { content: "📞"; font-size: 13px; }
.ir-elw-icon--search::before { content: "🔍"; font-size: 15px; }

.ir-elw-card__footer {
	margin-top: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding-top: 8px;
}

.ir-elw-card__price {
	display: flex;
	align-items: baseline;
	gap: 4px;
	font-size: 13px;
	color: var(--ir-elw-muted);
}

.ir-elw-card__price-amount {
	font-size: 16px;
	font-weight: 700;
	color: var(--ir-elw-primary);
}

.ir-elw-card__price-currency {
	font-size: 12px;
	color: var(--ir-elw-primary);
}

.ir-elw-card__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 9px 18px;
	border-radius: 10px;
	background: var(--ir-elw-primary);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid var(--ir-elw-primary);
	transition: opacity .2s ease;
	white-space: nowrap;
}

.ir-elw-card__btn:hover {
	opacity: .88;
	color: #fff;
}

/* =========================================================
   پوسته مدرن: کارت شناور با محتوای هم‌پوشان روی تصویر
   ========================================================= */
.ir-elw-card--modern {
    border: none;
    box-shadow: 0px 5px 10px -5px rgb(0 0 0 / 10%);
}

.ir-elw-card--modern:hover {
	transform: translateY(-4px);
	box-shadow: 0px 5px 10px -5px rgb(0 0 0 / 15%);
}

.ir-elw-card--modern .ir-elw-card__image {
	height: 210px;
}

.ir-elw-card--modern .ir-elw-card__content {
	position: relative;
	z-index: 2;
	margin-top: -28px;
	background: #fff;
	border-radius: 16px 16px 0 0;
	box-shadow: 0 -4px 14px rgba(20, 20, 43, .05);
}

.ir-elw-card--modern .ir-elw-card__title {
	font-size: 18px;
}

/* =========================================================
   پوسته جعبه هاوری: محتوا کاملاً روی تصویر، فقط با هاور نمایان می‌شود
   ========================================================= */
.ir-elw-card--hoverbox {
	position: relative;
	min-height: 300px;
	border: none;
}

.ir-elw-card--hoverbox .ir-elw-card__image {
	position: absolute;
	inset: 0;
	height: 100%;
	z-index: 1;
}

.ir-elw-card--hoverbox .ir-elw-card__image::after {
	content: "";
	position: absolute;
	inset: 0;
	opacity: 0; /* 👈 شروع با opacity صفر */
	background: linear-gradient(to top, rgba(15,17,26,.90) 0%, rgba(15,17,26,.75) 70%, transparent 100%);
	transition: opacity 0.4s ease; /* 👈 fade نرم */
}

.ir-elw-card--hoverbox:hover .ir-elw-card__image::after {
	opacity: 1; /* 👈 در هاور کامل نمایان میشه */
}

.ir-elw-card--hoverbox:hover {
	transform: translateY(-6px);
	box-shadow: 0px 5px 10px -5px rgb(0 0 0 / 10%);
}

.ir-elw-card--hoverbox .ir-elw-card__content {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 16px;
	color: #fff;
	opacity: 0;
	transform: translateY(12px);
	transition: opacity .35s ease, transform .35s ease;
	pointer-events: none;
}

.ir-elw-card--hoverbox:hover .ir-elw-card__content,
.ir-elw-card--hoverbox:focus-within .ir-elw-card__content {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.ir-elw-card--hoverbox .ir-elw-card__title a,
.ir-elw-card--hoverbox .ir-elw-card__location,
.ir-elw-card--hoverbox .ir-elw-card__phone,
.ir-elw-card--hoverbox .ir-elw-card__price {
	color: #fff;
}

.ir-elw-card--hoverbox .ir-elw-card__category {
	color: var(--ir-elw-amber);
}

.ir-elw-card--hoverbox .ir-elw-card__price-amount,
.ir-elw-card--hoverbox .ir-elw-card__price-currency {
	color: #fff;
}

.ir-elw-card--hoverbox .ir-elw-card__footer {
	border-top: 1px solid rgba(255,255,255,.25);
	margin-top: 8px;
	padding-top: 8px;
}

@media (hover: none) {
	.ir-elw-card--hoverbox .ir-elw-card__content {
		opacity: 1;
		transform: translateY(0);
		pointer-events: auto;
		background: linear-gradient(to top, rgba(15,17,26,.90) 0%, rgba(15,17,26,.75) 70%, transparent 100%);
	}
}

.ir-elw-no-results {
	padding: 30px;
	text-align: center;
	color: #6b7280;
	background: #f7f8fa;
	border-radius: 12px;
}

@media (max-width: 767px) {
	.ir-elw-card__image { height: 170px; }
	.ir-elw-card__content { padding: 12px; }
	.ir-elw-card__title { font-size: 15px; }
}