/**
 * My Products Portal Styles
 */

.mpp-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 30px 20px;
}

/* Section Styling */
.mpp-section {
	margin-bottom: 50px;
}

.mpp-section-title {
	font-size: 24px;
	font-weight: 600;
	color: #1a1a1a;
	margin-bottom: 25px;
	padding-bottom: 15px;
	border-bottom: 3px solid #0066cc;
	display: inline-block;
}

/* Grid Layout */
.mpp-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 25px;
	margin-bottom: 30px;
}

/* Card Styling */
.mpp-card {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.mpp-card:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	transform: translateY(-4px);
	border-color: #0066cc;
}

.mpp-card-image {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #f5f5f5;
}

.mpp-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

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

/* Badge Styling */
.mpp-badge {
	position: absolute;
	top: 12px;
	right: 12px;
	padding: 6px 12px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.mpp-badge-owned {
	background: #4caf50;
	color: #fff;
	box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.mpp-badge-lock {
	background: rgba(0, 0, 0, 0.7);
	color: #fff;
	font-size: 14px;
	padding: 8px 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
}

/* Card Content */
.mpp-card-content {
	padding: 20px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.mpp-card-title {
	font-size: 18px;
	font-weight: 600;
	color: #1a1a1a;
	margin: 0 0 12px 0;
	line-height: 1.4;
	min-height: 48px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.mpp-card-title a {
	color: #1a1a1a;
	text-decoration: none;
	transition: color 0.3s ease;
}

.mpp-card-title a:hover {
	color: #0066cc;
}

.mpp-card-description {
	font-size: 14px;
	color: #666;
	line-height: 1.6;
	margin: 0 0 15px 0;
	flex-grow: 1;
}

.mpp-card-price {
	font-size: 18px;
	font-weight: 700;
	color: #0066cc;
	margin: 15px 0 0 0;
}

.mpp-card-price .amount {
	color: #0066cc;
}

.mpp-card-price del {
	color: #999;
	margin-right: 8px;
	opacity: 0.8;
}

/* Card Footer */
.mpp-card-footer {
	padding: 15px 20px 20px 20px;
	border-top: 1px solid #f0f0f0;
	display: flex;
	gap: 10px;
}

/* Buttons */
.mpp-btn {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 20px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.3s ease;
	border: none;
	cursor: pointer;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.mpp-btn-access {
	background: #4caf50;
	color: #fff;
}

.mpp-btn-access:hover {
	background: #45a049;
	box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.mpp-btn-buy {
	background: #0066cc;
	color: #fff;
}

.mpp-btn-buy:hover {
	background: #0052a3;
	box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

/* Section Divider */
.mpp-divider {
	border: none;
	border-top: 2px solid #e0e0e0;
	margin: 40px 0;
	opacity: 0.5;
}

/* Empty State */
.mpp-empty {
	text-align: center;
	padding: 60px 20px;
	background: #f9f9f9;
	border-radius: 12px;
	color: #666;
	font-size: 16px;
}

.mpp-empty p {
	margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
	.mpp-container {
		padding: 20px 15px;
	}

	.mpp-grid {
		grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
		gap: 15px;
	}

	.mpp-section-title {
		font-size: 20px;
		margin-bottom: 20px;
	}

	.mpp-card-title {
		font-size: 16px;
		min-height: 40px;
	}

	.mpp-btn {
		padding: 10px 16px;
		font-size: 12px;
	}
}

@media (max-width: 480px) {
	.mpp-container {
		padding: 15px 10px;
	}

	.mpp-grid {
		grid-template-columns: 1fr;
		gap: 15px;
	}

	.mpp-section-title {
		font-size: 18px;
		margin-bottom: 15px;
	}

	.mpp-card-content {
		padding: 15px;
	}

	.mpp-card-footer {
		padding: 12px 15px 15px 15px;
	}

	.mpp-card-price {
		font-size: 16px;
	}
}

/* Loading / Lazy Load */
.mpp-card-image img {
	loading: lazy;
}

/* Print Styles */
@media print {
	.mpp-card-footer {
		display: none;
	}

	.mpp-card {
		page-break-inside: avoid;
	}
}
