/**
 * روغن صنعتی — Frontend styles
 * Discontinued-product popup shown on single product pages.
 * Popup is non-closable — user must navigate to replacement product.
 */

.roghan-overlay {
	position: fixed;
	inset: 0;
	background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	backdrop-filter: blur(2px);
}

body.roghan-modal-open {
	overflow: hidden;
}

.roghan-modal {
	background: linear-gradient(to bottom, #fff, #f9fafb);
	border-radius: 16px;
	max-width: 500px;
	width: 100%;
	padding: 40px 32px;
	position: relative;
	border: 1px solid rgba(0,0,0,0.08);
	text-align: center;
	animation: roghan-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes roghan-pop {
	0% {
		transform: scale(0.85);
		opacity: 0;
	}
	50% {
		transform: scale(1.02);
	}
	100% {
		transform: scale(1);
		opacity: 1;
	}
}

.roghan-modal-title {
	font-size: 28px;
	font-weight: 800;
	margin: 0 0 12px;
	color: #d63638;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	line-height: 1.2;
	background: linear-gradient(135deg, #d63638 0%, #a02a2d 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.roghan-modal-subtitle {
	font-size: 17px;
	color: #4a5568;
	margin: 0 0 28px;
	font-weight: 500;
	line-height: 1.5;
}

.roghan-replacement-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	border: 2px solid #e2e8f0;
	border-radius: 12px;
	padding: 24px;
	text-decoration: none;
	transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
	text-align: center;
	background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
	cursor: pointer;
	position: relative;
	overflow: hidden;
}

.roghan-replacement-card::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, transparent 0%, rgba(34, 113, 177, 0.05) 100%);
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}

.roghan-replacement-card:hover {
	border-color: #2271b1;
	;
	transform: translateY(-4px);
	background: linear-gradient(135deg, #fff 0%, #f0f6fd 100%);
}

.roghan-replacement-card:hover::before {
	opacity: 1;
}

.roghan-replacement-image {
	position: relative;
	z-index: 1;
}

.roghan-replacement-image img {
	width: 120px;
	height: 120px;
	object-fit: cover;
	border-radius: 10px;
	display: block;
	;
	transition: transform 0.3s ease;
}

.roghan-replacement-card:hover .roghan-replacement-image img {
	transform: scale(1.05);
}

.roghan-replacement-info {
	display: flex;
	flex-direction: column;
	gap: 10px;
	position: relative;
	z-index: 1;
}

.roghan-replacement-name {
	font-weight: 800;
	color: #1a202c;
	font-size: 19px;
	line-height: 1.3;
	margin: 0;
}

.roghan-replacement-cta {
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 24px;
	background: linear-gradient(135deg, #183661 0%, #0f2243 100%);
	border-radius: 8px;
	transition: all 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	text-decoration: none;
	margin-top: 6px;
}

.roghan-replacement-card:hover .roghan-replacement-cta {
	transform: translateY(-2px);}

.roghan-arrow {
	font-size: 19px;
	transition: transform 0.3s ease;
}

.roghan-replacement-card:hover .roghan-arrow {
	transform: translateX(-4px);
}

/* Mobile responsive */
@media (max-width: 480px) {
	.roghan-modal {
		padding: 32px 24px;
		margin: 16px;
	}

	.roghan-modal-title {
		font-size: 22px;
	}

	.roghan-modal-subtitle {
		font-size: 15px;
	}

	.roghan-replacement-card {
		padding: 20px 16px;
	}

	.roghan-replacement-image img {
		width: 100px;
		height: 100px;
	}
}

/* No blue flash on touch. */
html,body,a,button,input,select,textarea,label,summary,[role="button"],[tabindex]{-webkit-tap-highlight-color:transparent}
