/**
 * MyCreaTools - User Favorites Table / Grid Widget Styles
 */

.mct-favorites-container {
	width: 100%;
	position: relative;
	box-sizing: border-box;
	font-family: inherit;
}

.mct-favorites-container * {
	box-sizing: border-box;
}

/* Favorites Table Layout */
.mct-fav-table-wrap {
	width: 100%;
	overflow-x: auto;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.mct-fav-table {
	width: 100%;
	border-collapse: collapse;
	text-align: left;
}

.mct-fav-table th {
	background: #f8fafc;
	padding: 16px 20px;
	font-size: 14px;
	font-weight: 700;
	color: #0f172a;
	border-bottom: 2px solid #e2e8f0;
	white-space: nowrap;
}

.mct-fav-table td {
	padding: 18px 20px;
	vertical-align: middle;
	border-bottom: 1px solid #f1f5f9;
	color: #334155;
	font-size: 15px;
	transition: background-color 0.2s ease;
}

.mct-fav-table tr:last-child td {
	border-bottom: none;
}

.mct-fav-table tr:hover td {
	background-color: #fafbfc;
}

/* Product Info Cell */
.mct-fav-product-cell {
	display: flex;
	align-items: center;
	gap: 16px;
}

.mct-fav-product-img {
	width: 64px;
	height: 64px;
	border-radius: 8px;
	object-fit: cover;
	flex-shrink: 0;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
}

.mct-fav-product-title {
	font-size: 15px;
	font-weight: 700;
	color: #0f172a;
	text-decoration: none;
	line-height: 1.4;
	transition: color 0.2s ease;
}

.mct-fav-product-title:hover {
	color: #e50914;
}

/* Price & Stock */
.mct-fav-price {
	font-size: 16px;
	font-weight: 700;
	color: #e50914;
	white-space: nowrap;
}

.mct-fav-stock {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 999px;
}

.mct-fav-stock.in-stock {
	background: rgba(52, 211, 153, 0.12);
	color: #059669;
}

.mct-fav-stock.out-of-stock {
	background: rgba(248, 113, 113, 0.12);
	color: #dc2626;
}

/* Action Buttons Stack in Table */
.mct-fav-actions-cell {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.mct-fav-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 600;
	border-radius: 6px;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.2s ease;
	border: 1px solid transparent;
	white-space: nowrap;
}

.mct-fav-btn:hover {
	text-decoration: none;
}

.mct-fav-btn-buy {
	background-color: #e50914;
	color: #ffffff;
	border-color: #e50914;
}

.mct-fav-btn-buy:hover {
	background-color: #c40812;
	border-color: #c40812;
	color: #ffffff;
}

.mct-fav-btn-cart {
	background-color: #0f172a;
	color: #ffffff;
	border-color: #0f172a;
}

.mct-fav-btn-cart:hover {
	background-color: #1e293b;
	color: #ffffff;
}

.mct-fav-btn-view-cart {
	background-color: #059669;
	color: #ffffff;
	border-color: #059669;
}

.mct-fav-btn-view-cart:hover {
	background-color: #047857;
	color: #ffffff;
	border-color: #047857;
}

.mct-fav-btn-remove {
	background-color: #f1f5f9;
	color: #64748b;
	border-color: #cbd5e1;
}

.mct-fav-btn-remove:hover {
	background-color: #fee2e2;
	color: #dc2626;
	border-color: #fca5a5;
}

/* Empty State Box */
.mct-fav-empty-box {
	text-align: center;
	padding: 60px 20px;
	background: #ffffff;
	border: 1.5px dashed #cbd5e1;
	border-radius: 12px;
}

.mct-fav-empty-icon {
	width: 64px;
	height: 64px;
	margin: 0 auto 16px auto;
	color: #94a3b8;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mct-fav-empty-icon svg {
	width: 100%;
	height: 100%;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
}

.mct-fav-empty-title {
	font-size: 20px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 8px 0;
}

.mct-fav-empty-text {
	font-size: 15px;
	color: #64748b;
	margin: 0 0 20px 0;
}

/* Fade Out Animation on Removal */
tr.mct-fav-row-removing {
	opacity: 0;
	transform: translateX(20px);
	transition: all 0.3s ease;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
	.mct-fav-table th {
		padding: 12px 14px;
		font-size: 13px;
	}

	.mct-fav-table td {
		padding: 14px;
	}

	.mct-fav-product-img {
		width: 48px;
		height: 48px;
	}

	.mct-fav-product-title {
		font-size: 14px;
	}

	.mct-fav-actions-cell {
		flex-direction: column;
		align-items: stretch;
	}

	.mct-fav-btn {
		width: 100%;
		justify-content: center;
	}
}
