/* ===========================================================
   LabelSwift My Designs Plugin
   Brand color: #499CC2 | Dark: #252531
   =========================================================== */

/* Main Container */
.ls-my-designs {
	max-width: 1400px;
	margin: 0 auto;
	padding: 20px 0;
}

.ls-my-designs h2 {
	font-family: 'Roboto', sans-serif;
	font-size: 28px;
	font-weight: 600;
	color: #252531;
	margin: 0 0 30px;
	padding: 0;
}

/* Designs Grid - Responsive Layout */
.ls-designs-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	margin-bottom: 40px;
}

@media (max-width: 1199px) {
	.ls-designs-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 24px;
	}
}

@media (max-width: 767px) {
	.ls-designs-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
}

/* Design Card */
.ls-design-card {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
}

.ls-design-card:hover {
	box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
	transform: translateY(-4px);
}

/* Artwork Section */
.ls-design-artwork {
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #f5f5f5;
	position: relative;
}

.ls-design-artwork img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Design Info Section */
.ls-design-info {
	padding: 24px;
	flex: 1;
}

.ls-design-title {
	font-family: 'Roboto', sans-serif;
	font-size: 20px;
	font-weight: 600;
	color: #252531;
	margin: 0 0 12px;
	line-height: 1.3;
}

.ls-design-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0 0 20px;
	padding: 0;
	font-size: 13px;
	color: #666;
}

.ls-order-number,
.ls-order-date {
	display: inline-block;
}

.ls-order-number::after {
	content: '•';
	margin: 0 8px;
	color: #ccc;
}

/* Design Sections */
.ls-design-section {
	margin-bottom: 20px;
}

.ls-design-section:last-child {
	margin-bottom: 0;
}

.ls-section-header {
	font-family: 'Roboto', sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: #499CC2;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin: 0 0 12px;
	padding: 0;
}

/* Design Details Grid (matches cart display) */
.ls-design-details {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 8px 16px;
	margin: 0;
	padding: 0;
	font-size: 14px;
	line-height: 1.5;
}

.ls-design-details dt {
	font-weight: 500;
	color: #555;
	margin: 0;
	padding: 0;
}

.ls-design-details dd {
	font-weight: 400;
	color: #252531;
	margin: 0;
	padding: 0;
}

/* Action Buttons */
.ls-design-actions {
	display: flex;
	gap: 12px;
	padding: 24px;
	border-top: 1px solid #e0e0e0;
}

@media (max-width: 767px) {
	.ls-design-actions {
		flex-direction: column;
		gap: 10px;
	}
}

.ls-btn-quick-reorder,
.ls-btn-edit-reorder {
	flex: 1;
	padding: 12px 20px;
	font-family: 'Roboto', sans-serif;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.3s ease;
	border: 2px solid transparent;
	display: inline-block;
	line-height: 1.4;
}

/* Quick Reorder - Primary Button */
.ls-btn-quick-reorder {
	background: #499CC2;
	color: #fff;
	border-color: #499CC2;
}

.ls-btn-quick-reorder:hover {
	background: #3a8aaf;
	border-color: #3a8aaf;
	color: #fff;
}

.ls-btn-quick-reorder:disabled,
.ls-btn-quick-reorder.loading {
	background: #b0d4e3;
	border-color: #b0d4e3;
	cursor: not-allowed;
	opacity: 0.7;
}

/* Edit & Reorder - Secondary Button */
.ls-btn-edit-reorder {
	background: #fff;
	color: #499CC2;
	border-color: #499CC2;
}

.ls-btn-edit-reorder:hover {
	background: #499CC2;
	color: #fff;
	border-color: #499CC2;
}

/* Pagination */
.ls-designs-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 40px 0 0;
	padding: 20px 0;
}

.ls-designs-pagination .page-numbers {
	display: inline-block;
	padding: 8px 14px;
	margin: 0 4px;
	font-family: 'Roboto', sans-serif;
	font-size: 14px;
	font-weight: 500;
	color: #252531;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	text-decoration: none;
	transition: all 0.3s ease;
}

.ls-designs-pagination .page-numbers:hover {
	background: #f5f5f5;
	border-color: #499CC2;
	color: #499CC2;
}

.ls-designs-pagination .page-numbers.current {
	background: #499CC2;
	border-color: #499CC2;
	color: #fff;
}

.ls-designs-pagination .page-numbers.dots {
	border: none;
	background: none;
}

.ls-designs-pagination .page-numbers.dots:hover {
	background: none;
	color: #252531;
	border: none;
}

/* No Designs State */
.ls-no-designs {
	text-align: center;
	padding: 60px 20px;
	background: #f9f9f9;
	border-radius: 16px;
}

.ls-no-designs p {
	font-family: 'Roboto', sans-serif;
	font-size: 16px;
	color: #666;
	margin: 0 0 20px;
}

.ls-no-designs .button {
	display: inline-block;
	padding: 12px 30px;
	font-family: 'Roboto', sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	background: #499CC2;
	border: 2px solid #499CC2;
	border-radius: 6px;
	text-decoration: none;
	transition: all 0.3s ease;
}

.ls-no-designs .button:hover {
	background: #3a8aaf;
	border-color: #3a8aaf;
	color: #fff;
}

/* Responsive Refinements */
@media (max-width: 1024px) {
	.ls-my-designs {
		padding: 15px;
	}

	.ls-my-designs h2 {
		font-size: 24px;
		margin-bottom: 24px;
	}
}

@media (max-width: 767px) {
	.ls-my-designs h2 {
		font-size: 22px;
		margin-bottom: 20px;
	}

	.ls-design-info {
		padding: 20px;
	}

	.ls-design-title {
		font-size: 18px;
	}

	.ls-design-actions {
		padding: 20px;
	}

	.ls-design-details {
		gap: 6px 12px;
		font-size: 13px;
	}
}

/* Print Styles */
@media print {
	.ls-design-actions,
	.ls-designs-pagination {
		display: none;
	}

	.ls-design-card {
		page-break-inside: avoid;
		box-shadow: none;
		border: 1px solid #ccc;
	}
}
