/* ---------- Grid ---------- */
.ppg-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 20px;
	margin: 20px 0;
}

.ppg-card {
	background: #0d0d0d;
	border: 1px solid #232323;
	border-radius: 10px;
	overflow: hidden;
	cursor: pointer;
	transition: transform 0.2s ease, border-color 0.2s ease;
}

.ppg-card:hover {
	transform: translateY(-4px);
	border-color: #4a4a4a;
}

.ppg-card-image {
	position: relative;
	background: #ffffff;
	height: 220px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ppg-card-image img {
	max-height: 90%;
	max-width: 80%;
	object-fit: contain;
}

.ppg-pdf-badge {
	position: absolute;
	top: 10px;
	right: 10px;
	font-size: 11px;
	letter-spacing: 1px;
	color: #555;
	border: 1px solid #ccc;
	padding: 2px 7px;
	border-radius: 3px;
	background: #fff;
}

.ppg-card-body {
	padding: 18px;
	color: #eaeaea;
}

.ppg-card-cat {
	font-size: 11px;
	letter-spacing: 1px;
	color: #8a8a8a;
	margin-bottom: 8px;
}

.ppg-card-title {
	font-size: 18px;
	line-height: 1.3;
	margin: 0 0 10px;
	color: #fff;
	font-weight: 600;
}

.ppg-card-lot {
	font-size: 12px;
	color: #999;
	margin-bottom: 14px;
	padding-bottom: 14px;
	border-bottom: 1px solid #222;
}

.ppg-card-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 14px;
	color: #fff;
}

.ppg-arrow {
	border: 1px solid #444;
	border-radius: 50%;
	width: 26px;
	height: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
}

/* ---------- Modal ---------- */
.ppg-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.82);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 99999;
	padding: 20px;
}

.ppg-modal-overlay.active {
	display: flex;
}

.ppg-modal {
	background: #0d0d0d;
	width: 100%;
	max-width: 1050px;
	max-height: 90vh;
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid #2a2a2a;
	position: relative;
}

.ppg-modal-left {
	padding: 24px;
	overflow-y: auto;
	border-right: 1px solid #222;
}

.ppg-modal-pdf-header {
	display: flex;
	justify-content: space-between;
	color: #999;
	font-size: 11px;
	letter-spacing: 1px;
	margin-bottom: 8px;
}

.ppg-modal-title-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 16px;
}

.ppg-modal-title {
	color: #fff;
	font-size: 20px;
	margin: 0;
	font-weight: 600;
}

.ppg-pdf-tabs {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.ppg-pdf-tab {
	background: transparent;
	border: 1px solid #444;
	color: #ccc;
	font-size: 12px;
	padding: 5px 12px;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ppg-pdf-tab:hover {
	border-color: #777;
	color: #fff;
}

.ppg-pdf-tab.active {
	background: #fff;
	border-color: #fff;
	color: #000;
	font-weight: 600;
}

.ppg-pdf-frame-wrap {
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	height: 520px;
}

.ppg-pdf-frame-wrap iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

.ppg-open-full {
	display: inline-block;
	margin-top: 14px;
	color: #ccc;
	text-decoration: none;
	font-size: 13px;
}

.ppg-open-full:hover {
	color: #fff;
}

.ppg-modal-right {
	padding: 28px 24px 24px;
	display: flex;
	flex-direction: column;
	color: #fff;
}

.ppg-modal-close {
	position: absolute;
	top: 14px;
	right: 14px;
	background: #1a1a1a;
	border: none;
	color: #fff;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
}

.ppg-modal-close:hover {
	background: #2a2a2a;
}

.ppg-modal-image {
	background: #fff;
	border-radius: 8px;
	height: 180px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 18px;
}

.ppg-modal-image img {
	max-height: 90%;
	max-width: 80%;
	object-fit: contain;
}

.ppg-modal-cat {
	font-size: 11px;
	color: #8a8a8a;
	letter-spacing: 1px;
	margin-bottom: 8px;
}

.ppg-modal-info h3 {
	margin: 0 0 12px;
	font-size: 19px;
	font-weight: 600;
}

.ppg-modal-price {
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 24px;
}

.ppg-add-to-cart {
	background: #fff;
	color: #000;
	border: none;
	padding: 14px;
	border-radius: 8px;
	font-weight: 600;
	cursor: pointer;
	font-size: 15px;
	margin-top: auto;
	transition: background 0.15s ease;
}

.ppg-add-to-cart:hover {
	background: #e6e6e6;
}

.ppg-add-to-cart:disabled {
	opacity: 0.6;
	cursor: default;
}

.ppg-modal-disclaimer {
	text-align: center;
	font-size: 11px;
	color: #777;
	margin-top: 16px;
}

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

@media (max-width: 768px) {
	.ppg-modal {
		grid-template-columns: 1fr;
		overflow-y: auto;
		max-height: 95vh;
	}
	.ppg-modal-left {
		border-right: none;
		border-bottom: 1px solid #222;
	}
	.ppg-pdf-frame-wrap {
		height: 400px;
	}
}
