/**
 * NexaShop Promotional Banners Master Widget Styles
 * بنرهای تبلیغاتی و پروموشن (طرح‌های چندگانه، ابعاد استاندارد و انیمیشن نوری)
 *
 * Matching User Screenshots:
 * - media_1792523630608_be484654.png (3 Banners Grid)
 * - media_1792523730864_da5edf07.png (2 Banners Grid with Diagonal Light Beam Shine)
 * - media_1792523739859_42b8e4f3.png (1 Wide Single Banner)
 *
 * @package NexaShop
 * @subpackage ElementorWidgets\Sliders
 */

/* ==========================================================================
   1. Base Wrapper & Direction
   ========================================================================== */
.nexashop-pb-wrap {
	direction: rtl;
	width: 100%;
	margin: 0 auto;
	box-sizing: border-box;
	font-family: inherit;
	position: relative;
}

.nexashop-pb-wrap *,
.nexashop-pb-wrap *::before,
.nexashop-pb-wrap *::after {
	box-sizing: border-box;
}

/* ==========================================================================
   2. Responsive Grid Columns
   ========================================================================== */
.nexashop-pb-grid {
	display: grid;
	gap: 18px;
	width: 100%;
	align-items: stretch;
}

/* Desktop columns */
.nexashop-pb-wrap[data-cols-d="1"] .nexashop-pb-grid {
	grid-template-columns: 1fr;
}
.nexashop-pb-wrap[data-cols-d="2"] .nexashop-pb-grid {
	grid-template-columns: repeat(2, 1fr);
}
.nexashop-pb-wrap[data-cols-d="3"] .nexashop-pb-grid {
	grid-template-columns: repeat(3, 1fr);
}
.nexashop-pb-wrap[data-cols-d="4"] .nexashop-pb-grid {
	grid-template-columns: repeat(4, 1fr);
}
.nexashop-pb-wrap[data-cols-d="5"] .nexashop-pb-grid {
	grid-template-columns: repeat(5, 1fr);
}
.nexashop-pb-wrap[data-cols-d="6"] .nexashop-pb-grid {
	grid-template-columns: repeat(6, 1fr);
}

/* Tablet columns (max-width: 1024px) */
@media (max-width: 1024px) {
	.nexashop-pb-wrap[data-cols-t="1"] .nexashop-pb-grid {
		grid-template-columns: 1fr;
	}
	.nexashop-pb-wrap[data-cols-t="2"] .nexashop-pb-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.nexashop-pb-wrap[data-cols-t="3"] .nexashop-pb-grid {
		grid-template-columns: repeat(3, 1fr);
	}
	.nexashop-pb-wrap[data-cols-t="4"] .nexashop-pb-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* Mobile columns (max-width: 767px) */
@media (max-width: 767px) {
	.nexashop-pb-wrap[data-cols-m="1"] .nexashop-pb-grid {
		grid-template-columns: 1fr;
	}
	.nexashop-pb-wrap[data-cols-m="2"] .nexashop-pb-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ==========================================================================
   3. Banner Card Styles
   ========================================================================== */
.nexashop-pb-card {
	position: relative;
	border-radius: 20px;
	overflow: hidden;
	background-color: transparent;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
	display: flex;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	isolation: isolate;
	-webkit-mask-image: -webkit-radial-gradient(white, black);
}
.nexashop-pb-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 32px -6px rgba(0, 0, 0, 0.18);
}

.nexashop-pb-card__link {
	display: flex;
	width: 100%;
	height: 100%;
	position: relative;
	overflow: hidden;
	text-decoration: none;
	border-radius: inherit;
}

.nexashop-pb-card__img-wrap {
	width: 100%;
	height: 100%;
	position: relative;
	overflow: hidden;
	border-radius: inherit;
}

.nexashop-pb-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: inherit;
	transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.nexashop-pb-has-zoom .nexashop-pb-card:hover .nexashop-pb-card__img {
	transform: scale(1.04);
}

/* Auto Height Mode: Image naturally sizes the card with zero distortion or background bleed */
.nexashop-pb-wrap.nexashop-pb--auto-height .nexashop-pb-card,
.nexashop-pb-card.is-auto-height {
	height: auto !important;
}
.nexashop-pb-wrap.nexashop-pb--auto-height .nexashop-pb-card__link,
.nexashop-pb-card.is-auto-height .nexashop-pb-card__link,
.nexashop-pb-wrap.nexashop-pb--auto-height .nexashop-pb-card__img-wrap,
.nexashop-pb-card.is-auto-height .nexashop-pb-card__img-wrap {
	display: block;
	width: 100%;
	height: auto;
}
.nexashop-pb-wrap.nexashop-pb--auto-height .nexashop-pb-card__img,
.nexashop-pb-card.is-auto-height .nexashop-pb-card__img {
	width: 100%;
	height: auto;
	max-width: 100%;
	display: block;
}

/* ==========================================================================
   4. Signature Diagonal Light Beam Shine Effect (انیمیشن نوری)
   ========================================================================== */
.nexashop-pb-card__shine {
	position: absolute;
	top: 0;
	left: 0;
	width: 60%;
	height: 100%;
	background: linear-gradient(
		105deg,
		rgba(255, 255, 255, 0) 0%,
		rgba(255, 255, 255, 0.08) 25%,
		rgba(255, 255, 255, 0.45) 50%,
		rgba(255, 255, 255, 0.08) 75%,
		rgba(255, 255, 255, 0) 100%
	);
	transform: translate3d(-180%, 0, 0) skewX(-25deg);
	pointer-events: none;
	z-index: 5;
	transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
	opacity: 0.95;
	will-change: transform;
}

/* Hover Shine Mode */
.nexashop-pb-shine--hover .nexashop-pb-card:hover .nexashop-pb-card__shine {
	transform: translate3d(260%, 0, 0) skewX(-25deg);
}

/* Continuous Loop Shine Mode */
@keyframes nexashopShineLoop {
	0% {
		transform: translate3d(-180%, 0, 0) skewX(-25deg);
		opacity: 0;
	}
	12% {
		opacity: 0.95;
	}
	55% {
		transform: translate3d(260%, 0, 0) skewX(-25deg);
		opacity: 0.95;
	}
	58% {
		opacity: 0;
	}
	100% {
		transform: translate3d(260%, 0, 0) skewX(-25deg);
		opacity: 0;
	}
}
.nexashop-pb-card.has-continuous-shine .nexashop-pb-card__shine {
	animation: nexashopShineLoop 4.2s infinite cubic-bezier(0.2, 0.9, 0.3, 1);
}

/* ==========================================================================
   5. Optional Overlay Typography & CTA Button Styles
   ========================================================================== */
.nexashop-pb-card__overlay {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	padding: 24px 28px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	z-index: 4;
	pointer-events: none;
	color: #ffffff;
}

.nexashop-pb-align--right {
	align-items: flex-start;
	text-align: right;
}
.nexashop-pb-align--center {
	align-items: center;
	text-align: center;
}
.nexashop-pb-align--left {
	align-items: flex-end;
	text-align: left;
}

.nexashop-pb-overlay__badge {
	font-size: 13px;
	font-weight: 700;
	color: #ffffff;
	margin-bottom: 6px;
	opacity: 0.95;
	letter-spacing: -0.2px;
}

.nexashop-pb-overlay__title {
	font-size: 20px;
	font-weight: 900;
	line-height: 1.4;
	color: #ffffff;
	margin: 0 0 8px 0;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.nexashop-pb-overlay__subtitle {
	font-size: 13px;
	color: #cbd5e1;
	line-height: 1.6;
	margin: 0 0 14px 0;
	max-width: 85%;
}

/* Buttons */
.nexashop-pb-overlay__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 7px 18px;
	font-size: 13px;
	font-weight: 700;
	border-radius: 20px;
	transition: all 0.25s ease;
	line-height: 1.3;
	margin-top: 4px;
}

/* Style A: Pill Outline (مشابه تصویر ۱) */
.nexashop-pb-btn--pill_outline {
	background: transparent;
	color: #ffffff;
	border: 1.5px solid rgba(255, 255, 255, 0.65);
	backdrop-filter: blur(4px);
}
.nexashop-pb-card:hover .nexashop-pb-btn--pill_outline {
	background: #ffffff;
	color: #0f172a;
	border-color: #ffffff;
	transform: scale(1.04);
}

/* Style B: Pill White Solid (مشابه تصویر ۲) */
.nexashop-pb-btn--pill_white {
	background: #ffffff;
	color: #0f172a;
	border: none;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
.nexashop-pb-card:hover .nexashop-pb-btn--pill_white {
	background: #f1f5f9;
	transform: scale(1.05);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

/* Style C: Pill Red Solid (مشابه تصویر ۳) */
.nexashop-pb-btn--pill_red {
	background: #dc2626;
	color: #ffffff;
	border: none;
	box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}
.nexashop-pb-card:hover .nexashop-pb-btn--pill_red {
	background: #b91c1c;
	transform: scale(1.05);
	box-shadow: 0 4px 14px rgba(220, 38, 38, 0.45);
}

/* Style D: Pill Gold Solid */
.nexashop-pb-btn--pill_gold {
	background: #f5be18;
	color: #0f172a;
	border: none;
	box-shadow: 0 2px 8px rgba(245, 190, 24, 0.3);
}
.nexashop-pb-card:hover .nexashop-pb-btn--pill_gold {
	background: #eab308;
	transform: scale(1.05);
	box-shadow: 0 4px 14px rgba(245, 190, 24, 0.45);
}
