.webinfun-ebay-boutique {
	box-sizing: border-box;
	color: #1f2933;
	margin: 26px 0;
	width: 100%;
}

.webinfun-ebay-boutique *,
.webinfun-ebay-boutique *::before,
.webinfun-ebay-boutique *::after {
	box-sizing: inherit;
}

.webinfun-ebay-filters {
	align-items: end;
	background: #f7f9fc;
	border: 1px solid #e1e7f0;
	border-radius: 8px;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0 0 20px;
	padding: 14px;
}

.webinfun-ebay-filters label {
	color: #344054;
	display: grid;
	font-size: 13px;
	font-weight: 700;
	gap: 6px;
	min-width: 190px;
}

.webinfun-ebay-filters input {
	background: #fff;
	border: 1px solid #cfd8e6;
	border-radius: 6px;
	color: #111827;
	font: inherit;
	min-height: 40px;
	padding: 8px 11px;
}

.webinfun-ebay-filters input:focus {
	border-color: var(--webinfun-ebay-primary, #597DB1);
	box-shadow: 0 0 0 3px rgba(89, 125, 177, 0.16);
	outline: none;
}

.webinfun-ebay-filters button,
.webinfun-ebay-button {
	align-items: center;
	background: var(--webinfun-ebay-primary, #597DB1);
	border: 1px solid var(--webinfun-ebay-primary, #597DB1);
	border-radius: 6px;
	color: #fff !important;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-size: 14px;
	font-weight: 800;
	justify-content: center;
	letter-spacing: 0;
	line-height: 1.2;
	min-height: 40px;
	padding: 10px 14px;
	text-decoration: none;
	transition: filter 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.webinfun-ebay-filters button:hover,
.webinfun-ebay-button:hover,
.webinfun-ebay-filters button:focus,
.webinfun-ebay-button:focus {
	box-shadow: 0 8px 18px rgba(44, 62, 91, 0.18);
	color: #fff !important;
	filter: brightness(0.92);
	text-decoration: none;
	transform: translateY(-1px);
}

.webinfun-ebay-items {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(var(--webinfun-ebay-columns, 5), minmax(0, 1fr));
}

.webinfun-ebay-card {
	background: #fff;
	border: 1px solid #e1e7f0;
	border-radius: 8px;
	box-shadow: 0 8px 22px rgba(31, 41, 55, 0.07);
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.webinfun-ebay-card:hover {
	border-color: rgba(89, 125, 177, 0.42);
	box-shadow: 0 14px 30px rgba(31, 41, 55, 0.12);
	transform: translateY(-2px);
}

.webinfun-ebay-image-link {
	align-items: center;
	aspect-ratio: 4 / 3;
	background: linear-gradient(180deg, #f8fafc 0%, #eef3f9 100%);
	border-bottom: 1px solid #edf1f7;
	display: flex;
	justify-content: center;
	overflow: hidden;
	text-decoration: none;
}

.webinfun-ebay-image-link img {
	display: block;
	height: 100%;
	object-fit: contain;
	padding: 12px;
	width: 100%;
}

.webinfun-ebay-image-placeholder {
	color: #697586;
	font-size: 13px;
	padding: 16px;
	text-align: center;
}

.webinfun-ebay-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 10px;
	padding: 13px;
}

.webinfun-ebay-card h3 {
	font-size: 14px;
	font-weight: 800;
	line-height: 1.35;
	margin: 0;
	min-height: 38px;
}

.webinfun-ebay-card h3 a {
	color: #1f2933;
	display: -webkit-box;
	overflow: hidden;
	text-decoration: none;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.webinfun-ebay-card h3 a:hover {
	color: var(--webinfun-ebay-primary, #597DB1);
	text-decoration: none;
}

.webinfun-ebay-price {
	color: #111827;
	font-size: 17px;
	font-weight: 900;
	line-height: 1.2;
}

.webinfun-ebay-meta {
	color: #5f6b7a;
	display: flex;
	flex-direction: column;
	font-size: 12px;
	gap: 4px;
	line-height: 1.35;
	margin-bottom: 2px;
}

.webinfun-ebay-button {
	margin-top: auto;
	width: 100%;
}

.webinfun-ebay-layout-list .webinfun-ebay-items {
	grid-template-columns: 1fr;
}

.webinfun-ebay-layout-list .webinfun-ebay-card {
	display: grid;
	grid-template-columns: minmax(170px, 230px) 1fr;
}

.webinfun-ebay-layout-list .webinfun-ebay-image-link {
	aspect-ratio: auto;
	border-bottom: 0;
	border-right: 1px solid #edf1f7;
	min-height: 180px;
}

.webinfun-ebay-layout-list .webinfun-ebay-card h3 {
	font-size: 16px;
	min-height: auto;
}

.webinfun-ebay-layout-compact .webinfun-ebay-items {
	gap: 12px;
}

.webinfun-ebay-layout-compact .webinfun-ebay-card {
	box-shadow: 0 5px 14px rgba(31, 41, 55, 0.06);
}

.webinfun-ebay-layout-compact .webinfun-ebay-card-body {
	gap: 8px;
	padding: 11px;
}

.webinfun-ebay-layout-compact .webinfun-ebay-card h3 {
	font-size: 13px;
}

.webinfun-ebay-layout-compact .webinfun-ebay-price {
	font-size: 15px;
}

.webinfun-ebay-message {
	background: #f7f9fc;
	border: 1px solid #e1e7f0;
	border-radius: 8px;
	color: #344054;
	padding: 16px;
}

.webinfun-ebay-message-error {
	background: #fff1f2;
	border-color: #fecdd3;
	color: #9f1239;
}

.webinfun-ebay-pagination {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	margin-top: 22px;
}

.webinfun-ebay-pagination a,
.webinfun-ebay-pagination span {
	background: #fff;
	border: 1px solid #d4deeb;
	border-radius: 6px;
	color: #1f2933;
	min-height: 38px;
	padding: 8px 12px;
	text-decoration: none;
}

.webinfun-ebay-pagination a:hover {
	border-color: var(--webinfun-ebay-primary, #597DB1);
	color: var(--webinfun-ebay-primary, #597DB1);
	text-decoration: none;
}

@media (max-width: 1180px) {
	.webinfun-ebay-items {
		grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
	}
}

@media (max-width: 920px) {
	.webinfun-ebay-items {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 700px) {
	.webinfun-ebay-items {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.webinfun-ebay-layout-list .webinfun-ebay-card {
		grid-template-columns: 1fr;
	}

	.webinfun-ebay-layout-list .webinfun-ebay-image-link {
		border-right: 0;
		border-bottom: 1px solid #edf1f7;
	}

	.webinfun-ebay-filters {
		align-items: stretch;
		display: grid;
	}

	.webinfun-ebay-filters label,
	.webinfun-ebay-filters button {
		width: 100%;
	}
}

@media (max-width: 460px) {
	.webinfun-ebay-items,
	.webinfun-ebay-layout-list .webinfun-ebay-items {
		grid-template-columns: 1fr;
	}
}
