/* Panah Products — Quick View + Toast (v3.3) */
.pp-qv-overlay {
	position: fixed; inset: 0; z-index: 99999;
	background: rgba(15,23,42,.55); backdrop-filter: blur(4px);
	display: none; align-items: center; justify-content: center; padding: 20px;
	font-family: var(--pp-font, 'Vazirmatn', system-ui, sans-serif);
	opacity: 0; transition: opacity .2s ease;
}
.pp-qv-overlay, .pp-qv-overlay * { font-family: var(--pp-font, 'Vazirmatn', system-ui, sans-serif); box-sizing: border-box; }
.pp-qv-overlay.is-open { display: flex; opacity: 1; }
.pp-qv-modal {
	position: relative; width: 100%; max-width: 820px; max-height: 90vh;
	background: #fff; color: #0f172a; border-radius: 18px; overflow: hidden;
	display: grid; grid-template-columns: 1fr 1fr; gap: 0;
	box-shadow: 0 30px 80px -20px rgba(0,0,0,.5);
	transform: translateY(16px) scale(.98); transition: transform .25s ease;
}
.pp-qv-overlay.is-open .pp-qv-modal { transform: translateY(0) scale(1); }
.pp-qv-close {
	position: absolute; top: 14px; left: 14px; right: auto; z-index: 5;
	width: 38px; height: 38px; border-radius: 50%; border: none; cursor: pointer;
	background: var(--pp-accent, #4f46e5); color: #fff; display: flex; align-items: center; justify-content: center; transition: .2s;
}
.pp-qv-close svg { width: 18px; height: 18px; }
.pp-qv-close:hover { opacity: .85; transform: rotate(90deg); }
.pp-qv-media { background: linear-gradient(135deg,#f8fafc,#eef2ff); display: flex; align-items: center; justify-content: center; padding: 24px; }
.pp-qv-media img { width: 100%; height: 100%; max-height: 420px; object-fit: contain; border-radius: 12px; }
.pp-qv-info { padding: 36px 28px 28px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; }
.pp-qv-cat { font-size: 11px; font-weight: 800; color: var(--pp-accent, #4f46e5); letter-spacing: .04em; }
.pp-qv-title { font-size: 22px; font-weight: 900; margin: 0; line-height: 1.5; }
.pp-qv-rating { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #64748b; }
.pp-qv-stars { color: #f59e0b; letter-spacing: 2px; }
.pp-qv-rating strong { color: #0f172a; }
.pp-qv-price { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.pp-qv-old { color: #94a3b8; font-size: 14px; }
.pp-qv-amount { font-size: 26px; font-weight: 900; color: #e11d48; }
.pp-qv-unit { font-size: 13px; color: #64748b; font-weight: 600; }
.pp-qv-excerpt { font-size: 13px; line-height: 2; color: #475569; margin: 4px 0 0; }
.pp-qv-actions { display: flex; gap: 10px; margin-top: auto; padding-top: 16px; flex-wrap: wrap; }
.pp-qv-cart { flex: 1 1 auto; text-align: center; padding: 13px 18px; border-radius: 12px; background: #4f46e5; color: #fff !important; font-weight: 800; text-decoration: none; transition: filter .2s, transform .15s; }
.pp-qv-cart:hover { filter: brightness(.92); transform: translateY(-2px); }
.pp-qv-cart.is-disabled { background: #94a3b8; pointer-events: none; }
.pp-qv-link { padding: 13px 18px; border-radius: 12px; border: 1.5px solid #e2e8f0; color: #334155 !important; font-weight: 800; text-decoration: none; transition: .2s; }
.pp-qv-link:hover { border-color: #4f46e5; color: #4f46e5 !important; }
@media (max-width: 680px) {
	.pp-qv-modal { grid-template-columns: 1fr; max-height: 92vh; overflow-y: auto; }
	.pp-qv-media { padding: 18px; }
	.pp-qv-media img { max-height: 240px; }
	.pp-qv-info { padding: 22px 20px; }
	.pp-qv-title { font-size: 19px; }
}
.pp-toast {
	position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(120px);
	z-index: 100000; direction: rtl; display: flex; align-items: center; gap: 12px;
	background: #1e293b; color: #f1f5f9; font-family: var(--pp-font, 'Vazirmatn', system-ui, sans-serif);
	font-size: 14px; font-weight: 600; padding: 14px 22px; border-radius: 14px;
	box-shadow: 0 12px 40px -10px rgba(0,0,0,.45); opacity: 0;
	transition: transform .35s ease, opacity .35s ease; max-width: 680px; width: auto;
}
.pp-toast.is-visible { transform: translateX(-50%) translateY(0); opacity: 1; }
.pp-toast-icon { width: 32px; height: 32px; border-radius: 50%; background: #22c55e; color: #fff; font-weight: 900; font-size: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pp-toast-msg { flex: 1 1 auto; line-height: 1.6; }
.pp-toast-msg strong { color: #ef4444; }
.pp-toast-cart-link { background: #334155; color: #fff !important; text-decoration: none; padding: 7px 16px; border-radius: 8px; font-size: 13px; font-weight: 800; transition: background .2s; white-space: nowrap; flex-shrink: 0; }
.pp-toast-cart-link:hover { background: #475569; }
@media (max-width:680px) {
	.pp-toast { left: 12px; right: 12px; bottom: 12px; transform: translateX(0) translateY(120px); width: auto; max-width: none; flex-wrap: wrap; gap: 10px; padding: 12px; border-radius: 12px; font-size: 13px; align-items: center; }
	.pp-toast.is-visible { transform: translateX(0) translateY(0); }
	.pp-toast-icon { width: 28px; height: 28px; font-size: 14px; }
	.pp-toast-msg { flex: 1 1 0; min-width: 0; }
	.pp-toast-cart-link { flex: 1 1 100%; width: 100%; margin: 0; padding: 9px 12px; font-size: 12px; text-align: center; box-sizing: border-box; }
}
.pp-btn-bottom.pp-loading, .pp-qv-cart.pp-loading { opacity: .65; pointer-events: none; }
.pp-btn-bottom.pp-loading::after, .pp-qv-cart.pp-loading::after { content: ''; width: 14px; height: 14px; border: 2px solid #fff; border-top-color: transparent; border-radius: 50%; animation: pp-spin .5s linear infinite; display: inline-block; margin-right: 6px; }
@keyframes pp-spin { to { transform: rotate(360deg); } }