/* ===== Safir Info Popup - Glassmorphism ===== */

.sip-overlay {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 999999;
	opacity: 0;
	transition: opacity .3s ease;
	padding: 15px;
	box-sizing: border-box;
}

.sip-overlay.sip-open {
	display: flex;
	opacity: 1;
}

.sip-box {
	position: relative;
	max-width: 92vw;
	max-height: 90vh;
	overflow: hidden auto;
	background: rgba(255,255,255,0.14);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	border: 1px solid rgba(255,255,255,0.35);
	box-shadow: 0 8px 40px rgba(0,0,0,0.35);
	border-radius: 24px;
	padding: 16px 20px 24px;
	box-sizing: border-box;
	transform: scale(.92);
	transition: transform .3s ease;
	text-align: center;
}

.sip-overlay.sip-open .sip-box {
	transform: scale(1);
}

.sip-close {
	position: absolute;
	top: 10px;
	left: 10px;
	width: 32px;
	height: 32px;
	border: none;
	border-radius: 50%;
	background: rgba(255,255,255,0.25);
	color: #fff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .2s ease;
	z-index: 5;
}
.sip-close:hover { background: rgba(255,255,255,0.45); }

.sip-logo {
	display: flex;
	margin-top: 20px;
}
.sip-logo img {
	width: 100px;
	height: auto;
	display: inline-block;
	border-radius: 8px;
}

.sip-title {
	margin-top: 15px;
	font-size: 22px;
	font-weight: 700;
	color: #fff;
}

.sip-subtitles {
	display: flex;
	flex-direction: column;
}
.sip-subtitle {
	margin-top: 10px;
	line-height: 1.8;
}

.sip-buttons-wrap {
	margin-top: 18px;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	justify-content: center;
}
.sip-button {
	display: inline-block;
	background: #2d6cdf;
	color: #fff;
	text-decoration: none;
	padding: 10px 28px;
	border-radius: 30px;
	font-size: 16px;
	transition: transform .2s ease, filter .2s ease;
}
.sip-button:hover {
	filter: brightness(1.08);
	transform: translateY(-2px);
	color: #fff;
}

/* ===== کاروسل حلقه بی‌نهایت (قابل اسکرول با دست/موس) ===== */
.sip-carousel {
	margin-top: 20px;
	overflow-x: auto;
	overflow-y: hidden;
	width: 100%;
	position: relative;
	cursor: grab;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-ms-overflow-style: none;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.sip-carousel::-webkit-scrollbar { display: none; }
.sip-carousel.sip-dragging { cursor: grabbing; scroll-behavior: auto; }

.sip-carousel-track {
	display: flex;
	width: max-content;
}
.sip-carousel-set {
	display: flex;
	flex: 0 0 auto;
}
.sip-carousel-item {
	flex: 0 0 auto;
	display: block;
	margin: 0 6px;
	line-height: 0;
	user-select: none;
	-webkit-user-drag: none;
}
.sip-carousel-item img {
	height: 90px;
	width: auto;
	display: block;
	border-radius: 10px;
	object-fit: cover;
	pointer-events: none;
}

/* ===== تصویر پایینی ===== */
.sip-bottom-image {
	margin-top: 20px;
	height: 33%;
	width: calc(100% + 40px);
	margin-left: -20px;
	margin-right: -20px;
	overflow: hidden;
}
.sip-bottom-image img,
.sip-bottom-image a {
	display: block;
	width: 100%;
	height: 100%;
}
.sip-bottom-image img {
	object-fit: cover;
}

@media (max-width: 480px) {
	.sip-box { padding: 14px 14px 20px; }
	.sip-title { font-size: 18px; }
}
