.category-page .category-subcategory-block:not(:last-child) {
	margin-bottom: 48px;
}

.category-page .category-product-list-flat {
	padding: 48px 0;
}

.category-page .category-flat-heading {
	padding-top: 48px;
}

.category-page .category-flat-heading + .category-product-list-flat {
	padding-top: 0;
}

.category-page .category-products-heading .category-product-cta {
	text-decoration: none;
}

.category-page .category-products-heading .category-product-cta span {
	text-decoration: underline;
}

.category-page .category-products-heading .category-product-cta:hover i,
.category-page .category-products-heading .category-product-cta:focus-visible i {
	transform: translateX(3px);
}

.category-page .category-layout.category-layout-no-filters {
	grid-template-columns: minmax(0, 1fr);
}

.category-page .category-layout-no-filters .category-products {
	padding-left: 0;
}

/* ==================== [ Compare Bar Start ] ==================== */
.compare-bar {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1040;
	padding: 12px 0;
	border-top: 1px solid var(--border-primary-15);
	background: rgba(255, 255, 255, 0.97);
	box-shadow: 0 -8px 24px rgba(0, 82, 136, 0.10);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

body.has-compare-bar {
	padding-bottom: 96px;
}

.compare-bar-inner {
	display: flex;
	align-items: center;
	gap: 24px;
}

.compare-bar-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 170px;
	color: var(--dark);
}

.compare-bar-info strong {
	color: var(--primary);
	font-weight: 600;
}

.compare-bar-count {
	font-size: 13px;
	color: var(--dark-secondary);
}

.compare-bar-notice {
	font-size: 12px;
	color: var(--danger);
}

.compare-bar-slots {
	display: flex;
	flex: 1 1 auto;
	gap: 12px;
	min-width: 0;
}

.compare-bar-slot {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1 1 0;
	min-width: 0;
	max-width: 230px;
	height: 60px;
	padding: 6px 28px 6px 6px;
	border: 1px solid var(--border-primary-25);
	border-radius: 8px;
	background: var(--white);
}

.compare-bar-slot img {
	flex-shrink: 0;
	width: 46px;
	height: 46px;
	object-fit: contain;
}

.compare-bar-slot-name {
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--dark);
}

.compare-bar-slot.is-empty {
	justify-content: center;
	padding: 6px;
	border-style: dashed;
	background: var(--border-primary-03);
	color: var(--border-primary-45);
	font-size: 20px;
}

.compare-bar-remove {
	position: absolute;
	top: 4px;
	right: 4px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--dark-secondary);
	font-size: 16px;
	transition: color 0.2s ease, background-color 0.2s ease;
}

.compare-bar-remove:hover,
.compare-bar-remove:focus-visible {
	background: var(--border-danger-25);
	color: var(--danger);
}

.compare-bar-actions {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-shrink: 0;
}

.compare-bar-actions .btn.disabled {
	opacity: 0.5;
	pointer-events: none;
}

@media (max-width: 991.98px) {
	.compare-bar-inner {
		flex-wrap: wrap;
		gap: 12px;
	}

	.compare-bar-info {
		flex-direction: row;
		align-items: baseline;
		gap: 8px;
		min-width: 0;
	}

	.compare-bar-slots {
		order: 3;
		flex-basis: 100%;
	}

	.compare-bar-actions {
		margin-left: auto;
	}

	.compare-bar-slot {
		justify-content: center;
		height: 52px;
		padding-right: 6px;
	}

	.compare-bar-slot-name {
		display: none;
	}

	body.has-compare-bar {
		padding-bottom: 190px;
	}
}
/* ==================== [ Compare Bar End ] ==================== */

/* ==================== [ Compare Page Start ] ==================== */
.compare-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 24px;
	color: var(--dark);
}

.compare-table-wrap {
	overflow-x: auto;
	border: 1px solid var(--border-primary-15);
	border-radius: 12px;
	background: var(--white);
}

.compare-table {
	width: 100%;
	min-width: calc(220px + var(--compare-cols, 2) * 220px);
	margin: 0;
	border-collapse: collapse;
	table-layout: fixed;
}

.compare-table th,
.compare-table td {
	padding: 14px 18px;
	border-bottom: 1px solid var(--border-20);
	vertical-align: top;
	text-align: left;
	color: var(--dark);
	font-size: 15px;
	line-height: 1.5;
}

.compare-table td + td,
.compare-table th + td,
.compare-table thead th + th {
	border-left: 1px solid var(--border-20);
}

.compare-table .compare-label-col,
.compare-table tbody th[scope="row"] {
	position: sticky;
	left: 0;
	z-index: 1;
	width: 220px;
	background: var(--white);
	font-weight: 600;
}

.compare-table thead th {
	vertical-align: bottom;
	background: var(--white);
}

.compare-item {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.compare-item-image {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 140px;
	padding: 12px;
	border: 1px solid var(--border-primary-15);
	border-radius: 8px;
	background: var(--white);
}

.compare-item-image img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.compare-item-name {
	color: var(--primary);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
}

.compare-item-name:hover {
	text-decoration: underline;
}

.compare-item-subtitle {
	font-size: 13px;
	font-weight: 400;
	color: var(--dark-secondary);
}

.compare-item-remove {
	position: absolute;
	top: 6px;
	right: 6px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 1px solid var(--border-primary-25);
	border-radius: 50%;
	background: var(--white);
	color: var(--dark-secondary);
	font-size: 16px;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.compare-item-remove:hover,
.compare-item-remove:focus-visible {
	border-color: var(--danger);
	color: var(--danger);
}

.compare-group-row th {
	padding: 10px 18px;
	background: var(--border-primary-08);
	color: var(--primary);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.compare-table tbody tr.is-different td {
	background: var(--border-primary-03);
}

.compare-table.show-differences-only tbody tr.is-same {
	display: none;
}

.compare-empty-value {
	color: var(--secondary);
}

.compare-table td p:last-child,
.compare-table td ul:last-child {
	margin-bottom: 0;
}

.compare-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	max-width: 460px;
	margin: 0 auto;
	padding: 40px 16px;
	text-align: center;
}

.compare-empty-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: var(--border-primary-08);
	color: var(--primary);
	font-size: 32px;
}

.compare-empty h4 {
	margin: 6px 0 0;
}

.compare-empty p {
	margin: 0 0 8px;
	color: var(--dark-secondary);
}

@media (max-width: 767.98px) {
	.compare-table {
		min-width: calc(140px + var(--compare-cols, 2) * 180px);
	}

	.compare-table .compare-label-col,
	.compare-table tbody th[scope="row"] {
		width: 140px;
	}

	.compare-table th,
	.compare-table td {
		padding: 12px;
		font-size: 14px;
	}

	.compare-item-image {
		height: 100px;
	}
}
/* ==================== [ Compare Page End ] ==================== */

/* The badge text is already semibold (600) and the theme forces all b/strong
   to 600, so bold set in the admin needs a heavier weight to show. */
.category-banner .animated-badge b,
.category-banner .animated-badge strong {
	font-weight: 700 !important;
}

/* ==================== [ Download Center Start ] ==================== */
.download-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	margin-bottom: 40px;
}

.download-card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.download-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	border: 1px solid var(--border-primary-15);
	border-radius: 16px;
	background: var(--white);
	color: inherit;
	text-decoration: none;
	transition: box-shadow 0.3s ease, border-color 0.3s ease;
	-webkit-transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.download-card[hidden] {
	display: none;
}

.download-card:hover,
.download-card:focus-visible {
	border-color: var(--border-primary-45);
	box-shadow: 0 14px 32px rgba(0, 82, 136, 0.1);
}

.download-card-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 24px;
}

.download-card-body h6 {
	margin-bottom: 10px;
	color: var(--heading-color);
	transition: color 0.3s ease-in-out;
}

.download-card:hover h6 {
	color: var(--primary);
}

.download-card-body p {
	display: -webkit-box;
	flex: 1 1 auto;
	margin-bottom: 20px;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	color: var(--secondary);
	font-size: 15px;
	line-height: 1.6;
}

.download-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
}

.download-card-count {
	color: var(--dark-secondary);
	font-size: 14px;
}

.download-card-cta {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--primary);
	font-size: 15px;
	font-weight: 600;
}

.download-card-cta span {
	text-decoration: underline;
}

.download-card:hover .download-card-cta i {
	transform: translateX(3px);
}

.download-card-cta i {
	transition: transform 0.3s ease;
}

/* Brand card */
.download-brand-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 140px;
	padding: 24px;
	border-bottom: 1px solid var(--border-primary-15);
	/* The card can't clip (its hover glow sits outside it), so the tinted
	   logo strip rounds its own top corners to the card's inner radius. */
	border-radius: 15px 15px 0 0;
	background: var(--border-primary-03);
}

.download-brand-logo img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.download-brand-initial {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: var(--border-primary-08);
	color: var(--primary);
	font-size: 32px;
	font-weight: 600;
}

/* Category card */
.download-category-heading {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}

.download-category-heading h6 {
	margin-bottom: 0;
}

.download-category-icon,
.download-category-image {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: 10px;
}

.download-category-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--border-primary-08);
	color: var(--primary);
	font-size: 22px;
}

.download-category-image {
	object-fit: contain;
}

/* Download Center Content (terms & conditions) below the brand cards */
.download-center-terms {
	margin-top: 48px;
	padding: 32px;
	border: 1px solid var(--border-primary-15);
	border-radius: 12px;
	background: var(--white);
}

.download-center-terms-title {
	margin-bottom: 16px;
	color: var(--dark);
}

/* Editor paragraphs carry their own dark colour; lists etc. should match */
.download-center-terms-body {
	color: var(--dark);
}

.download-center-terms-body > :last-child {
	margin-bottom: 0;
}

@media (max-width: 575.98px) {
	.download-center-terms {
		margin-top: 32px;
		padding: 20px 16px;
	}
}

/* Documents page */
.download-documents-page {
	padding: 48px 0 100px;
}

.download-document-search {
	max-width: 640px;
	margin-bottom: 32px;
}

.download-document-search .download-search {
	max-width: none;
}

.download-results-count {
	margin-bottom: 16px;
	color: var(--dark);
	font-weight: 600;
}

.download-document-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.download-document-card {
	--glow-radius: 12px;

	padding: 20px 24px;
	border: 1px solid var(--border-primary-15);
	border-radius: 12px;
	background: var(--white);
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.download-document-card[hidden] {
	display: none;
}

.download-document-card:hover {
	border-color: var(--border-primary-45);
	box-shadow: 0 10px 24px rgba(0, 82, 136, 0.08);
}

.download-document-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

.download-document-tag {
	padding: 4px 14px;
	border-radius: 100px;
	background: var(--border-primary-08);
	color: var(--dark);
	font-size: 13px;
}

.download-document-title {
	color: var(--dark);
	text-decoration: none;
	transition: color 0.3s ease;
}

.download-document-title:hover,
.download-document-title:focus-visible {
	color: var(--primary);
}

.download-document-description {
	margin: 8px 0 0;
	color: var(--secondary);
	font-size: 15px;
}

.download-document-meta {
	display: flex;
	flex-wrap: wrap;
	margin-top: 10px;
	color: var(--dark-secondary);
	font-size: 14px;
}

.download-document-meta span:not(:last-child)::after {
	content: '|';
	margin: 0 10px;
	color: var(--border-primary-45);
}

.download-document-meta b {
	color: var(--dark);
	font-weight: 500;
}

.download-document-actions {
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid var(--border-primary-15);
}

/* The theme caps front modals at 600px; long file names need more room */
@media (min-width: 992px) {
	.download-files-modal .modal-dialog {
		max-width: 860px;
	}
}

.download-files-modal-subtitle {
	margin: 4px 0 0;
	color: var(--dark-secondary);
	font-size: 15px;
}

.download-files-modal .modal-footer {
	gap: 24px;
	padding: 12px 16px;
	border-top: 1px solid var(--border);
}

.download-files-modal .modal-footer > * {
	margin: 0;
}

.download-files-modal .modal-footer .btn-link {
	font-weight: 600;
	text-decoration: none;
}

.download-files-modal .modal-footer .btn-link:hover {
	text-decoration: underline;
}

/* Follows the theme's table skeleton (style.css: bordered rows, light
   primary heading row - as the product specification table), with the
   theme's document icons and download button inside. */
.download-files-table {
	margin: 0;
}

.download-files-table th,
.download-files-table td {
	padding: 12px;
	border-inline: 0;
	vertical-align: middle;
}

.download-files-table .table-light-primary {
	background-color: var(--active-bg);
}

.download-files-table .table-light-primary th {
	color: var(--primary);
	font-weight: 500;
}

.download-files-table .download-file-format {
	width: 90px;
	text-align: center;
}

.download-files-table .download-file-size {
	width: 100px;
	text-align: right;
	white-space: nowrap;
}

.download-files-table .download-file-action {
	width: 58px;
	text-align: right;
}

@media (max-width: 575.98px) {
	.download-files-table .download-file-format {
		display: none;
	}
}

@media (max-width: 991.98px) {
	.download-card-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 575.98px) {
	.download-card-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.download-document-card {
		padding: 16px;
	}
}
/* ==================== [ Download Center End ] ==================== */
