.wdcm-wrapper {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px 0;
}

/* ---- Abas de categoria ---- */
.wdcm-tabs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-bottom: 34px;
	padding-bottom: 4px;
	border-bottom: 1px solid #e2e2e2;
}

.wdcm-tab {
	appearance: none;
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	cursor: pointer;
	color: #555;
	font-size: 14px;
	font-weight: 500;
	padding: 10px 14px;
	margin-bottom: -1px;
	line-height: 1.2;
	transition: color 0.15s ease, border-color 0.15s ease;
	white-space: nowrap;
}

.wdcm-tab:hover {
	color: #1e6f7c;
}

.wdcm-tab.is-active {
	color: #1e6f7c;
	border-bottom-color: #1e6f7c;
	font-weight: 600;
}

/* ---- Grade: 5 por linha ---- */
.wdcm-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 30px 20px;
}

@media (max-width: 1100px) {
	.wdcm-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 880px) {
	.wdcm-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
	.wdcm-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
	.wdcm-grid { grid-template-columns: repeat(1, 1fr); }
}

/* ---- Card ---- */
.wdcm-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	height: 100%;
}

.wdcm-image {
	width: 162px;
	height: 228px;
	flex: 0 0 228px;
	margin-bottom: 15px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.wdcm-image img {
	width: 162px;
	height: 228px;
	object-fit: cover;
	display: block;
}

.wdcm-image-placeholder {
	width: 162px;
	height: 228px;
	background: #e0e0e0;
}

/* Título fixo em até 3 linhas, com reticências caso ultrapasse */
.wdcm-title {
	font-size: 15px;
	font-weight: 500;
	color: #333;
	margin: 0 0 15px;
	line-height: 1.4;
	height: calc(1.4em * 3);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	word-break: break-word;
}

.wdcm-button {
	display: inline-block;
	background-color: #1e6f7c;
	color: #fff;
	text-decoration: none;
	padding: 10px 22px;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	transition: background-color 0.2s ease;
}

.wdcm-button:hover {
	background-color: #164f58;
	color: #fff;
}

.wdcm-button-disabled {
	background-color: #aaa;
	cursor: not-allowed;
}

.wdcm-empty {
	text-align: center;
	color: #666;
	padding: 40px 0;
}
