body.wy-open { overflow: hidden; }
.wy-overlay {
	position: fixed; inset: 0; z-index: 999999;
	background: rgba(0,0,0,.55);
	display: flex; align-items: center; justify-content: center;
	padding: 16px; direction: rtl;
}
.wy-modal {
	position: relative; background: #fff; border-radius: 12px;
	width: 100%; max-width: 820px; max-height: 90vh; overflow-y: auto;
	padding: 28px 24px 20px; text-align: center;
	box-shadow: 0 20px 60px rgba(0,0,0,.25);
	animation: wy-in .2s ease-out;
}
@keyframes wy-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.wy-close {
	position: absolute; top: 8px; left: 12px;
	background: none; border: 0; font-size: 30px; line-height: 1;
	cursor: pointer; color: #555; padding: 4px;
}
.wy-title { margin: 0 0 6px; font-size: 24px; }
.wy-sub { margin: 0 0 20px; color: #444; }
.wy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.wy-card {
	border: 1px solid #eee; border-radius: 10px; padding: 12px;
	display: flex; flex-direction: column; gap: 8px;
}
.wy-img img { width: 100%; height: auto; border-radius: 6px; display: block; }
.wy-name { font-weight: 600; font-size: 15px; line-height: 1.35; flex-grow: 1; }
.wy-prices del { color: #999; margin-left: 6px; }
.wy-prices ins { text-decoration: none; font-weight: 700; font-size: 18px; color: #c0392b; }
.wy-add.button { width: 100%; margin: 0; }
.wy-add:disabled { opacity: .7; cursor: default; }
.wy-dismiss {
	margin-top: 18px; background: none; border: 0;
	text-decoration: underline; color: #666; cursor: pointer;
}
@media (max-width: 640px) {
	.wy-grid { grid-template-columns: 1fr; }
	.wy-card { display: grid; grid-template-columns: 90px 1fr; column-gap: 12px; row-gap: 6px; text-align: right; }
	.wy-img { grid-row: 1 / span 3; }
	.wy-title { font-size: 20px; }
}
