/* Custom Product Filters — Accordion styling */

.cpf-filters-wrap {
	background: #fbfbfb;
	border-radius: 20px;
	padding: 24px;
	max-width: 340px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.cpf-title {
	font-size: 30px;
	font-weight: 700;
	margin: 0 0 20px;
	color: #1a1a1a;
}

.cpf-filters-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.cpf-accordion-item {
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
	overflow: hidden;
}

.cpf-accordion-toggle {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: none;
	border: none;
	cursor: pointer;
	padding: 16px 18px;
	font-size: 16px;
	font-weight: 500;
	color: #2b2b2b;
	text-align: left;
}

.cpf-chevron {
	flex-shrink: 0;
	color: #4a4a4a;
	transition: transform 0.2s ease;
}

.cpf-accordion-toggle[aria-expanded="true"] .cpf-chevron {
	transform: rotate(180deg);
}

.cpf-accordion-panel {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.25s ease;
}

.cpf-accordion-panel-inner {
	padding: 0 18px 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.cpf-checkbox {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #333;
	cursor: pointer;
}

.cpf-checkbox input {
	width: 16px;
	height: 16px;
	accent-color: #2b2b2b;
	cursor: pointer;
}

.cpf-checkbox em {
	font-style: normal;
	color: #999;
	font-size: 12px;
	margin-left: auto;
}

.cpf-price-inputs {
	display: flex;
	gap: 12px;
}

.cpf-price-inputs label {
	flex: 1;
	font-size: 12px;
	color: #777;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.cpf-price-inputs input[type="number"] {
	padding: 8px 10px;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	font-size: 14px;
	width: 100%;
}

.cpf-actions {
	margin-top: 4px;
}

.cpf-clear-btn {
	width: 100%;
	padding: 10px 14px;
	border-radius: 10px;
	border: 1px solid #e2e2e2;
	background: #fff;
	cursor: pointer;
	font-size: 14px;
	color: #444;
}

.cpf-clear-btn:hover {
	background: #f4f4f4;
}

/* Product grid */

.cpf-product-grid {
	position: relative;
}

.cpf-grid-meta {
	margin-bottom: 14px;
	font-size: 14px;
	color: #777;
}

.cpf-grid-items {
	display: grid;
	grid-template-columns: repeat(var(--cpf-columns, 4), minmax(0, 1fr));
	gap: 20px;
}

@media (max-width: 900px) {
	.cpf-grid-items {
		grid-template-columns: repeat(min(var(--cpf-columns, 4), 2), minmax(0, 1fr));
	}
}
@media (max-width: 560px) {
	.cpf-grid-items {
		grid-template-columns: 1fr;
	}
}

.cpf-product-card {
	background: #fff;
	border-radius: 24px;
	padding: 22px 24px 24px;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	overflow: hidden;
}

.cpf-product-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.cpf-product-link {
	text-decoration: none;
	color: inherit;
	display: block;
}

.cpf-product-thumb {
	position: relative;
	border: 1px solid #222;
	border-radius: 34px 34px 0 0;
	overflow: hidden;
	background: #fff;
}

.cpf-product-thumb img {
	width: 100%;
	height: 280px;
	object-fit: cover;
	display: block;
}

.cpf-sale-badge {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 1;
	padding: 11px 20px;
	border-radius: 24px;
	background: #000;
	color: #fff;
	font-size: 13px;
	font-weight: 500;
}

.cpf-product-name {
	font-size: 25px;
	line-height: 1.15;
	font-weight: 600;
	text-align: center;
	margin: 22px 0 14px;
	color: #303030;
}

.cpf-product-description {
	min-height: 42px;
	margin: 0 auto 14px;
	color: #888;
	font-size: 14px;
	line-height: 1.5;
	text-align: center;
}

.cpf-product-details {
	display: flex;
	justify-content: center;
	gap: 24px;
	margin: 0 0 20px;
	color: #888;
	font-size: 13px;
}

.cpf-product-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.cpf-product-price {
	flex: 1;
	min-height: 46px;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px 16px;
	border-radius: 9px;
	background: #000;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
}

.cpf-product-price del {
	margin-right: 6px;
	color: #bbb;
}

.cpf-product-price ins {
	color: #fff;
	text-decoration: none;
}

.cpf-cart-button {
	width: 46px;
	height: 46px;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #222;
	border-radius: 9px;
	color: #222;
	text-decoration: none;
	font-size: 20px;
}

.cpf-cart-button:hover,
.cpf-product-price:hover {
	opacity: 0.82;
}

@media (max-width: 560px) {
	.cpf-product-card { padding: 16px; }
	.cpf-product-thumb img { height: 240px; }
	.cpf-product-name { font-size: 22px; }
}

.cpf-no-results {
	grid-column: 1 / -1;
	text-align: center;
	color: #888;
	padding: 40px 0;
}

.cpf-loading {
	opacity: 0.5;
	pointer-events: none;
}
