.wcpt-wrapper {
	display: flex;
	gap: 40px;
	align-items: flex-start;
	flex-wrap: wrap;
	font-size: 14px;
	color: #1a1a1a;
}

/* ---------- Sidebar filters ---------- */

.wcpt-sidebar {
	flex: 0 0 200px;
	max-width: 220px;
}

.wcpt-filter-group + .wcpt-filter-group {
	margin-top: 26px;
	padding-top: 22px;
	border-top: 1px solid #ececec;
}

.wcpt-filter-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0 0 12px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #1a1a1a;
	cursor: pointer;
	user-select: none;
}

.wcpt-toggle-arrow {
	font-size: 9px;
	color: #999;
	transition: transform 0.15s ease;
}

.wcpt-filter-group.is-collapsed .wcpt-filter-options {
	display: none;
}

.wcpt-filter-group.is-collapsed .wcpt-toggle-arrow {
	transform: rotate(180deg);
}

.wcpt-filter-options label {
	display: block;
	font-weight: normal;
	margin: 7px 0;
	font-size: 13.5px;
	color: #444;
	cursor: pointer;
}

.wcpt-filter-options label:hover {
	color: #000;
}

.wcpt-filter-options input[type="checkbox"] {
	margin-right: 8px;
	accent-color: #111;
}

/* ---------- Table area ---------- */

.wcpt-table-container {
	flex: 1 1 480px;
	min-width: 280px;
	position: relative;
}

.wcpt-toolbar {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	margin-bottom: 18px;
}

.wcpt-sort-label {
	font-size: 13px;
	color: #777;
	margin: 0;
	line-height: 1;
	display: inline-flex;
	align-items: center;
}

.wcpt-sort-select {
	margin: 0;
	padding: 5px 8px;
	border: none;
	border-bottom: 1px solid #ccc;
	border-radius: 0;
	background: transparent;
	color: #1a1a1a;
	font-size: 13px;
	line-height: normal;
	vertical-align: middle;
	box-sizing: border-box;
	cursor: pointer;
}

.wcpt-sort-select:focus {
	outline: none;
	border-bottom-color: #111;
}

.wcpt-table {
	width: 100%;
	border-collapse: collapse;
	background: transparent;
}

.wcpt-table td {
	padding: 18px 10px;
	border-bottom: 1px solid #ececec;
	vertical-align: middle;
}

.wcpt-table tr:first-child td {
	padding-top: 0;
}

.wcpt-table tr:last-child td {
	border-bottom: none;
}

.wcpt-col-image img {
	width: 42px;
	height: auto;
	display: block;
}

.wcpt-col-name a {
	font-weight: 500;
	color: #1a1a1a;
	text-decoration: none;
}

.wcpt-col-name a:hover {
	color: #555;
}

.wcpt-short-desc {
	font-size: 12px;
	color: #888;
	margin-top: 3px;
	font-weight: normal;
}

.wcpt-col-sku,
.wcpt-col-weight,
.wcpt-col-attr {
	color: #777;
	font-size: 13px;
}

.wcpt-col-price {
	white-space: nowrap;
	font-weight: 500;
}

.wcpt-col-price del {
	opacity: 0.5;
	margin-right: 6px;
	font-weight: normal;
}

.wcpt-col-price ins {
	text-decoration: none;
}

/* ---------- Quantity stepper ---------- */

.wcpt-col-qty {
	width: 90px;
	text-align: center;
	line-height: 1;
}

.wcpt-qty-stepper {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 10px !important;
	width: auto !important;
	max-width: none !important;
	height: auto !important;
	border: none !important;
	border-bottom: 1px solid #333 !important;
	padding: 0 0 4px !important;
	margin: 0 auto !important;
	box-sizing: content-box !important;
	background: none !important;
	line-height: 1 !important;
}

.wcpt-table td.wcpt-col-qty .wcpt-qty-stepper .wcpt-qty-btn {
	all: unset !important;
	display: inline-block !important;
	cursor: pointer !important;
	color: #0071a1 !important;
	font-size: 14px !important;
	font-weight: normal !important;
	line-height: 1 !important;
	height: auto !important;
	width: auto !important;
	padding: 0 !important;
	margin: 0 !important;
	background: none !important;
	border: none !important;
	box-shadow: none !important;
}

.wcpt-qty-btn:hover {
	color: #005177 !important;
}

.wcpt-table td.wcpt-col-qty .wcpt-qty-stepper input.wcpt-qty-input[type="number"] {
	all: unset !important;
	display: inline-block !important;
	box-sizing: content-box !important;
	width: 16px !important;
	max-width: 16px !important;
	min-width: 0 !important;
	height: auto !important;
	flex: none !important;
	text-align: center !important;
	font-size: 13px !important;
	font-weight: normal !important;
	line-height: 1 !important;
	color: #333 !important;
	background: none !important;
	border: none !important;
	padding: 0 !important;
	margin: 0 !important;
	-moz-appearance: textfield !important;
	appearance: textfield !important;
}

.wcpt-qty-input::-webkit-inner-spin-button,
.wcpt-qty-input::-webkit-outer-spin-button {
	-webkit-appearance: none !important;
	margin: 0 !important;
}

/* ---------- Add to cart ---------- */

.wcpt-col-action {
	white-space: nowrap;
	text-align: right;
}

.wcpt-add-to-cart {
	cursor: pointer;
	border: 1px solid #1a1a1a;
	background: transparent;
	color: #1a1a1a;
	padding: 7px 16px;
	border-radius: 0;
	font-size: 12.5px;
	letter-spacing: 0.02em;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.wcpt-add-to-cart:hover {
	background: #1a1a1a;
	color: #fff;
}

.wcpt-add-to-cart.loading {
	opacity: 0.5;
	pointer-events: none;
}

.wcpt-add-to-cart.added::after {
	content: " ✓";
}

.wcpt-out-of-stock {
	color: #b32d2e;
	font-size: 12.5px;
}

.wcpt-no-products {
	padding: 32px 0;
	text-align: center;
	color: #888;
	font-size: 14px;
}

/* ---------- Pagination ---------- */

.wcpt-pagination {
	margin-top: 22px;
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
}

.wcpt-page-btn {
	border: none;
	background: none;
	padding: 0;
	cursor: pointer;
	font-size: 13px;
	color: #999;
}

.wcpt-page-btn:hover {
	color: #1a1a1a;
}

.wcpt-page-btn.is-active {
	color: #1a1a1a;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.wcpt-table-container.wcpt-loading {
	opacity: 0.5;
	pointer-events: none;
}

/* ---------- Mobile ---------- */

@media (max-width: 680px) {
	.wcpt-wrapper {
		flex-direction: column;
		gap: 28px;
	}
	.wcpt-sidebar {
		max-width: 100%;
		flex-basis: auto;
		width: 100%;
	}

	.wcpt-toolbar {
		justify-content: flex-start;
	}
	.wcpt-sort-select {
		flex: 1 1 auto;
	}

	/* Turn the table into a stack of cards - one per product - instead of
	   a cramped, horizontally-scrolling table. */
	.wcpt-table,
	.wcpt-table tbody {
		display: block;
		width: 100%;
	}

	.wcpt-table tr {
		display: block;
		background: transparent;
		border-bottom: 1px solid #ececec;
		padding: 18px 0;
	}

	.wcpt-table tr:first-child {
		padding-top: 0;
	}

	.wcpt-table tr:last-child {
		border-bottom: none;
	}

	.wcpt-table td {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		padding: 6px 0;
		border-bottom: none;
		text-align: right;
	}

	.wcpt-table td[data-label]::before {
		content: attr(data-label);
		font-weight: 500;
		font-size: 11.5px;
		letter-spacing: 0.03em;
		text-transform: uppercase;
		color: #999;
		text-align: left;
		flex: 0 0 auto;
	}

	/* Product name acts as the card title: full width, no label, no
	   right-alignment, sits above everything else in the card. */
	.wcpt-col-name {
		display: block;
		text-align: left;
		font-size: 15.5px;
		padding-bottom: 10px;
		margin-bottom: 4px;
	}

	/* Product image, if enabled, sits centered above the name. */
	.wcpt-col-image {
		justify-content: center;
	}
	.wcpt-col-image img {
		width: 60px;
	}

	.wcpt-col-qty {
		width: auto;
	}

	/* Add-to-cart / "view product" button spans the full card width. */
	.wcpt-col-action {
		justify-content: center;
		padding-top: 12px;
	}
	.wcpt-col-action .wcpt-add-to-cart {
		width: 100%;
		text-align: center;
		padding: 11px 16px;
	}
}
