/**
 * Vassart Products — styles shared by the "product category field"
 * Elementor widgets (widgets/class-category-*-widget.php). Registered (not
 * enqueued) per widget via get_style_depends(), so this only loads on pages
 * that actually use one of these widgets. Uses the same palette as
 * category-page.css/product-widgets.css so a category page built with
 * these widgets in Elementor matches the legacy template's look. The
 * Category Product Listing widget doesn't use this file — it reuses
 * category-page.css directly (see class-category-products-widget.php).
 */

.vassart-field-widget-notice {
	padding: 10px 14px;
	border: 1px dashed #c2c2c2;
	border-radius: 4px;
	color: #757575;
	font-size: 13px;
}

/* Breadcrumb */
.vassart-widget-category-breadcrumb {
	font-size: 13px;
	color: #757575;
}

.vassart-widget-category-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.vassart-widget-category-breadcrumb li {
	display: flex;
	align-items: center;
}

.vassart-widget-category-breadcrumb__sep {
	margin: 0 8px;
	color: #c2c2c2;
}

.vassart-widget-category-breadcrumb a {
	color: #757575;
	text-decoration: none;
}

.vassart-widget-category-breadcrumb a:hover {
	color: #ea5501;
	text-decoration: underline;
}

.vassart-widget-category-breadcrumb [aria-current='page'] {
	color: #1b1b1b;
	font-weight: 600;
}

/* Name */
.vassart-widget-category-name {
	margin: 0 0 12px;
	font-size: clamp(26px, 3.6vw, 38px);
	font-weight: 700;
	line-height: 1.25;
}

.vassart-widget-category-name a {
	color: inherit;
	text-decoration: none;
}

/* Image */
.vassart-widget-category-image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 4px;
}

/* FAQ */
.vassart-widget-category-faq__heading {
	margin: 0 0 24px;
	font-size: 32px;
	line-height: 1.2;
	font-weight: 700;
	color: #1b1b1b;
}

.vassart-widget-category-faq__item {
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 4px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
	padding: 20px 24px;
	margin-bottom: 16px;
}

.vassart-widget-category-faq__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	list-style: none;
	cursor: pointer;
	font-weight: 600;
	font-size: 17px;
	color: #1b1b1b;
}

.vassart-widget-category-faq__question::-webkit-details-marker {
	display: none;
}

.vassart-widget-category-faq__question::after {
	content: '+';
	flex-shrink: 0;
	font-size: 22px;
	font-weight: 400;
	line-height: 1;
	color: #1b1b1b;
}

.vassart-widget-category-faq__item[open] .vassart-widget-category-faq__question {
	color: #e2231c;
}

.vassart-widget-category-faq__item[open] .vassart-widget-category-faq__question::after {
	content: '\2212';
	color: #e2231c;
}

.vassart-widget-category-faq__answer {
	margin-top: 14px;
	color: #757575;
	font-size: 15px;
	line-height: 1.7;
}
