/* ══════════════════════════════════════════
   LALMEK Products – Frontend Styles
   ══════════════════════════════════════════ */

/* ── Produktrutnät ────────────────────── */

.lalmek-products-grid,
.lalmek-categories-grid {
	display: grid;
	gap: 10px;
}

.lalmek-cols-2 { grid-template-columns: repeat(2, 1fr); }
.lalmek-cols-3 { grid-template-columns: repeat(3, 1fr); }
.lalmek-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
	.lalmek-cols-3,
	.lalmek-cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
	.lalmek-products-grid,
	.lalmek-categories-grid { grid-template-columns: 1fr; }
}

/* ── Produktkort ──────────────────────── */

.lalmek-product-card,
.lalmek-product-card:hover,
.lalmek-product-card:focus,
.lalmek-product-card:visited {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #b0c4d8;
	border-radius: 7px;
	overflow: hidden;
	text-decoration: none !important;
	color: #1a1a1a;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	position: relative;
}

.lalmek-product-card:hover {
	border-color: #0055A4;
	box-shadow: 0 8px 24px rgba(0, 85, 164, 0.08);
}

/* Förhindra att temat lägger understrykningar på någon text i korten */
.lalmek-product-card *,
.lalmek-category-btn,
.lalmek-cat-section__link,
.lalmek-pdf-link {
	text-decoration: none !important;
}

.lalmek-category-btn:hover,
.lalmek-cat-section__link:hover {
	text-decoration: underline !important;
}

.lalmek-product-image {
	height: 200px;
	overflow: hidden;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	border-bottom: none;
}

/* WebP-pluginet (cowebp) lägger <picture> runt bilden. Utan detta blir <picture>
   flex-barnet, bildens height: 100% slutar gälla och bilden beskärs av rutan. */
.lalmek-product-image picture {
	display: contents;
}

.lalmek-product-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 1rem;
}

.lalmek-product-no-image span {
	color: #999;
	font-size: 0.875rem;
}

.lalmek-product-card-body {
	padding: 1.25rem 1.5rem;
}

.lalmek-product-title {
	font-size: 1.0625rem;
	font-weight: 700;
	margin: 0 0 0.5rem;
	line-height: 1.3;
}

.lalmek-product-card .lalmek-product-tagline {
	font-size: 0.8125rem;
	color: #616161;
	margin: 0;
	line-height: 1.5;
}

/* ── Badge / Tag ──────────────────────── */

.lalmek-product-badge {
	display: inline-block;
	background: #E6F0FA;
	color: #0055A4;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	padding: 3px 10px;
	border-radius: 4px;
	text-transform: uppercase;
}

.lalmek-product-card .lalmek-product-badge {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 1;
}

/* ── Kategorikort ─────────────────────── */

.lalmek-category-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 2rem 1.5rem;
	text-decoration: none;
	color: #1a1a1a;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.lalmek-category-card:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

.lalmek-category-title {
	font-size: 1.1rem;
	font-weight: 600;
	margin: 0 0 0.5rem;
}

.lalmek-category-desc {
	font-size: 0.9rem;
	color: #616161;
	line-height: 1.5;
	margin: 0 0 1.25rem;
}

.lalmek-category-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 0.875rem;
	font-weight: 600;
	color: #0055A4;
	text-decoration: none;
	margin-top: auto;
}

.lalmek-category-btn:hover {
	text-decoration: underline;
}

.lalmek-category-count {
	font-size: 0.85rem;
	color: #888;
}

/* ── Produktdetalj ────────────────────── */

.lalmek-product-detail {
	max-width: 900px;
}

.lalmek-product-intro {
	margin-bottom: 2rem;
}

.lalmek-product-detail .lalmek-product-tagline {
	font-size: 1.15rem;
	color: #555;
	margin: 0.5rem 0 0;
}

/* ── Galleri ──────────────────────────── */

.lalmek-product-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1rem;
	margin-bottom: 2.5rem;
}

.lalmek-gallery-item {
	margin: 0;
	border-radius: 7px;
	overflow: hidden;
	background: #F8F9FA;
	border: 1px solid #e0e0e0;
	aspect-ratio: 4 / 3;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.lalmek-gallery-item:hover {
	border-color: #0055A4;
	box-shadow: 0 4px 16px rgba(0, 85, 164, 0.08);
}

.lalmek-gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	padding: 0.75rem;
}

/* ── Features ─────────────────────────── */

.lalmek-product-features {
	margin-bottom: 2.5rem;
}

.lalmek-product-features h2 {
	font-size: 1.3rem;
	font-weight: 700;
	margin-bottom: 1.25rem;
}

.lalmek-product-features ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.lalmek-product-features li {
	padding: 0.625rem 0 0.625rem 2rem;
	position: relative;
	line-height: 1.5;
	font-size: 0.9375rem;
	color: #424242;
	border-bottom: 1px solid #f0f0f0;
}

.lalmek-product-features li:last-child {
	border-bottom: none;
}

.lalmek-product-features li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 0.625rem;
	font-size: 1rem;
	font-weight: 700;
	color: #0055A4;
}

/* ── Specifikationstabell ─────────────── */

.lalmek-product-specs {
	margin-bottom: 2.5rem;
	overflow-x: auto;
}

.lalmek-product-specs h2 {
	font-size: 1.3rem;
	font-weight: 700;
	margin-bottom: 1rem;
}

.lalmek-specs-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.8125rem;
	line-height: 1.4;
	border: 1px solid #d5dce6;
	border-radius: 10px;
	overflow: hidden;
}

.lalmek-specs-table th {
	padding: 10px 14px;
	text-align: left;
	font-weight: 700;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	white-space: nowrap;
	background: #002242;
	color: #fff;
	border-bottom: none;
}

.lalmek-specs-table td {
	padding: 9px 14px;
	text-align: left;
	border-bottom: 1px solid #edf0f4;
	color: #3a3f4b;
	white-space: nowrap;
}

.lalmek-specs-table tbody tr:nth-child(even) {
	background: #f8f9fb;
}

.lalmek-specs-table tbody tr:hover {
	background: #e8f0fa;
}

.lalmek-specs-table tbody tr:last-child td {
	border-bottom: none;
}

/* ── Applikationer ────────────────────── */

.lalmek-product-applications {
	margin-bottom: 2.5rem;
}

.lalmek-product-applications h2 {
	font-size: 1.3rem;
	font-weight: 700;
	margin-bottom: 1.25rem;
}

.lalmek-apps-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

@media (max-width: 900px) {
	.lalmek-apps-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
	.lalmek-apps-grid { grid-template-columns: 1fr; }
}

.lalmek-app-card {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 1.75rem;
	text-align: center;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.lalmek-app-card:hover {
	border-color: #0055A4;
	box-shadow: 0 4px 16px rgba(0, 85, 164, 0.06);
}

.lalmek-app-card img {
	width: 56px;
	height: 56px;
	object-fit: contain;
	background: #E6F0FA;
	border-radius: 16px;
	padding: 12px;
	margin: 0 auto 1rem;
	display: block;
}

.lalmek-app-card h3 {
	font-size: 1rem;
	font-weight: 600;
	margin: 0 0 0.5rem;
}

.lalmek-app-card p {
	font-size: 0.8125rem;
	color: #616161;
	margin: 0;
	line-height: 1.5;
}

/* ── PDF-länk ─────────────────────────── */

.lalmek-product-pdf {
	margin-bottom: 2.5rem;
}

.lalmek-pdf-link {
	display: inline-flex;
	align-items: center;
	gap: 1rem;
	padding: 1.25rem 1.5rem;
	background: #fff;
	color: #1a1a1a;
	text-decoration: none;
	border-radius: 8px;
	border: 1px solid #e0e0e0;
	font-weight: 600;
	font-size: 0.875rem;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.lalmek-pdf-link:hover {
	border-color: #0055A4;
	box-shadow: 0 4px 12px rgba(0, 85, 164, 0.06);
	color: #1a1a1a;
}

.lalmek-pdf-link svg {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	background: #DC3545;
	color: #fff;
	border-radius: 8px;
	padding: 8px;
}

/* ── Relaterade produkter ─────────────── */

.lalmek-product-related {
	margin-top: 3rem;
	padding-top: 2.5rem;
	border-top: 1px solid #e8e8e8;
}

.lalmek-product-related h2 {
	font-size: 1.3rem;
	font-weight: 700;
	margin-bottom: 1.5rem;
}

.lalmek-product-related .lalmek-products-grid {
	grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 900px) {
	.lalmek-product-related .lalmek-products-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.lalmek-product-related .lalmek-products-grid {
		grid-template-columns: 1fr;
	}
}

/* ── Breadcrumbs ──────────────────────── */

.lalmek-breadcrumbs {
	font-size: 0.85rem;
	color: #888;
	margin-bottom: 1.5rem;
}

.lalmek-breadcrumbs a {
	color: #555;
	text-decoration: none;
}

.lalmek-breadcrumbs a:hover {
	text-decoration: underline;
}

.lalmek-breadcrumb-sep {
	margin: 0 0.4em;
	color: #ccc;
}

/* ══════════════════════════════════════════
   Produktöversikt [lalmek_product_overview]
   ══════════════════════════════════════════ */

/* ── Overview wrapper ─────────────────── */

.lalmek-overview {
	color: #1a1a1a;
}

/* Tvinga synlighet om BB reveal-animation döljer */
.fl-module-html .lalmek-overview,
.reveal-fade-up .lalmek-overview,
.fl-builder-content .lalmek-overview {
	opacity: 1 !important;
	transform: none !important;
	visibility: visible !important;
	color: #1a1a1a;
}

/* ── Filterbar ───────────────────────── */

.lalmek-filterbar {
	background: #fff;
	border-bottom: 1px solid #e0e0e0;
	padding: 16px 0;
	position: sticky;
	top: 0;
	z-index: 50;
	color: #424242;
}

body.lalmek-sticky .lalmek-filterbar {
	top: var(--lmm-header-height, 72px);
}

body.admin-bar.lalmek-sticky .lalmek-filterbar {
	top: calc(var(--lmm-header-height, 72px) + 32px);
}

@media (max-width: 782px) {
	body.admin-bar.lalmek-sticky .lalmek-filterbar {
		top: calc(var(--lmm-header-height, 72px) + 46px);
	}
}

.lalmek-filterbar__inner {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	align-items: center;
	gap: 16px;
}

.lalmek-filterbar__chips {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	flex: 1;
}

.lalmek-chip {
	padding: 8px 20px;
	border: 1px solid #e0e0e0;
	border-radius: 100px;
	font-family: inherit;
	font-size: 0.8125rem;
	font-weight: 500;
	color: #424242;
	cursor: pointer;
	background: #fff;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
	-webkit-appearance: none;
	line-height: 1.4;
}

.lalmek-chip:hover {
	border-color: #0055A4;
	color: #0055A4;
}

.lalmek-chip.is-active {
	background: #0055A4;
	color: #fff;
	border-color: #0055A4;
}

.lalmek-filterbar__count {
	font-size: 0.8125rem;
	color: #9e9e9e;
	white-space: nowrap;
	flex-shrink: 0;
}

/* ── Kategorisektion ─────────────────── */

.lalmek-cat-section {
	padding: 3.75rem 0;
	border-bottom: 1px solid #eee;
	max-width: 1400px;
	margin: 0 auto;
	padding-left: 24px;
	padding-right: 24px;
	color: #1a1a1a;
	background: transparent;
}

.lalmek-cat-section:last-child {
	border-bottom: none;
}

.lalmek-cat-section__header {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	margin-bottom: 2rem;
}

.lalmek-cat-section__label {
	display: block;
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	color: #3387D6;
	margin-bottom: 0.5rem;
}

.lalmek-cat-section__title {
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1.2;
	margin: 0;
	color: #1a1a1a;
}

.lalmek-cat-section__link {
	font-size: 0.875rem;
	font-weight: 600;
	color: #0055A4;
	text-decoration: none;
	white-space: nowrap;
}

.lalmek-cat-section__link:hover {
	text-decoration: underline;
}

/* ── Produktkort (utökat för overview) ── */

.lalmek-product-card__more {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: 0.75rem;
	font-size: 0.8125rem;
	font-weight: 600;
	color: #0055A4;
}

/* ── Responsiv filterbar ─────────────── */

@media (max-width: 768px) {
	.lalmek-filterbar__inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.lalmek-filterbar__chips {
		overflow-x: auto;
		flex-wrap: nowrap;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 4px;
	}

	.lalmek-chip {
		flex-shrink: 0;
	}

	.lalmek-cat-section__header {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5rem;
	}
}

/* ══════════════════════════════════════════
   Bildgrid [lalmek_image_grid]
   ══════════════════════════════════════════ */

.lalmek-image-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: 12px;
	border-radius: 12px;
	overflow: hidden;
}

.lalmek-image-grid__item {
	overflow: hidden;
	border-radius: 8px;
}

.lalmek-image-grid__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.lalmek-image-grid__item--large {
	grid-row: 1 / -1;
}

/* Färre än 5 bilder: enklare layout */
.lalmek-image-grid:has(> :nth-child(4):last-child) {
	grid-template-columns: 1fr 1fr;
}

.lalmek-image-grid:has(> :nth-child(3):last-child) {
	grid-template-columns: 1fr 1fr 1fr;
	grid-template-rows: 1fr;
}

.lalmek-image-grid:has(> :nth-child(3):last-child) .lalmek-image-grid__item--large {
	grid-row: auto;
}

.lalmek-image-grid:has(> :nth-child(2):last-child) {
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr;
}

.lalmek-image-grid:has(> :nth-child(2):last-child) .lalmek-image-grid__item--large {
	grid-row: auto;
}

@media (max-width: 768px) {
	.lalmek-image-grid {
		grid-template-columns: 1fr 1fr;
		height: auto !important;
	}

	.lalmek-image-grid__item--large {
		grid-column: 1 / -1;
		grid-row: auto;
		max-height: 300px;
	}

	.lalmek-image-grid__item {
		min-height: 150px;
	}
}

/* ══════════════════════════════════════════
   Stort produktkort [lalmek_product_card]
   ══════════════════════════════════════════ */

.lalmek-bigcard {
	display: grid;
	grid-template-columns: 1fr 1fr;
	background: #fff;
	border: 2px solid #e0e0e0;
	border-radius: 12px;
	overflow: hidden;
	transition: border-color 0.2s ease;
}

.lalmek-bigcard:hover {
	border-color: #0055A4;
}

.lalmek-bigcard--reversed {
	direction: rtl;
}

.lalmek-bigcard--reversed > * {
	direction: ltr;
}

.lalmek-bigcard__image {
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 260px;
	overflow: hidden;
}

.lalmek-bigcard__image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 1.5rem;
}

.lalmek-bigcard__image span {
	color: #999;
	font-size: 0.875rem;
}

.lalmek-bigcard__body {
	padding: 2.25rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.lalmek-bigcard__body .lalmek-product-badge {
	position: static;
	align-self: flex-start;
	margin-bottom: 0.75rem;
}

.lalmek-product-badge--own {
	background: #D1E7DD;
	color: #0F5132;
}

.lalmek-bigcard__title {
	font-size: 1.375rem;
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 0.75rem;
}

.lalmek-bigcard__text {
	font-size: 0.9375rem;
	color: #616161;
	line-height: 1.6;
	margin: 0 0 1.25rem;
}

.lalmek-bigcard__specs {
	display: flex;
	gap: 1.5rem;
	margin-bottom: 1.25rem;
	flex-wrap: wrap;
}

.lalmek-bigcard__spec {
	text-align: center;
}

.lalmek-bigcard__spec-value {
	font-size: 1.125rem;
	font-weight: 700;
	color: #0055A4;
	line-height: 1.2;
}

.lalmek-bigcard__spec-label {
	font-size: 0.6875rem;
	color: #9e9e9e;
	margin-top: 2px;
}

.lalmek-bigcard__link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 0.875rem;
	font-weight: 600;
	color: #0055A4;
	text-decoration: none !important;
	margin-top: auto;
}

.lalmek-bigcard__link:hover {
	text-decoration: underline !important;
}

@media (max-width: 768px) {
	.lalmek-bigcard {
		grid-template-columns: 1fr;
	}

	.lalmek-bigcard--reversed {
		direction: ltr;
	}

	.lalmek-bigcard__image {
		min-height: 200px;
	}

	.lalmek-bigcard__body {
		padding: 1.5rem;
	}
}

/* ══════════════════════════════════════════
   Fristående filterbar [lalmek_filter_bar]
   ══════════════════════════════════════════ */

.lalmek-filterbar--sticky {
	position: sticky;
	top: 0;
	z-index: 50;
}

body.lalmek-sticky .lalmek-filterbar--sticky {
	top: var(--lmm-header-height, 72px);
}

body.admin-bar.lalmek-sticky .lalmek-filterbar--sticky {
	top: calc(var(--lmm-header-height, 72px) + 32px);
}

@media (max-width: 782px) {
	body.admin-bar.lalmek-sticky .lalmek-filterbar--sticky {
		top: calc(var(--lmm-header-height, 72px) + 46px);
	}
}

/* ══════════════════════════════════════════
   Kategori-header [lalmek_category_header]
   ══════════════════════════════════════════ */

.lalmek-cat-section__desc {
	font-size: 0.9375rem;
	color: #616161;
	line-height: 1.6;
	max-width: 600px;
	margin: 0.5rem 0 0;
}

/* ══════════════════════════════════════════
   Quick Nav [lalmek_quick_nav]
   ══════════════════════════════════════════ */

.lalmek-quicknav {
	background: #fff;
	border-bottom: 1px solid #e0e0e0;
	padding: 16px 0;
	z-index: 50;
}

.lalmek-quicknav--sticky {
	position: sticky;
	top: 0;
}

body.lalmek-sticky .lalmek-quicknav--sticky {
	top: var(--lmm-header-height, 72px);
}

body.admin-bar.lalmek-sticky .lalmek-quicknav--sticky {
	top: calc(var(--lmm-header-height, 72px) + 32px);
}

@media (max-width: 782px) {
	body.admin-bar.lalmek-sticky .lalmek-quicknav--sticky {
		top: calc(var(--lmm-header-height, 72px) + 46px);
	}
}

.lalmek-quicknav__inner {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	align-items: center;
	gap: 12px;
}

.lalmek-quicknav__link,
.lalmek-quicknav__link:visited {
	padding: 8px 20px;
	border: 1px solid #e0e0e0;
	border-radius: 100px;
	font-size: 0.8125rem;
	font-weight: 500;
	color: #424242;
	background: #fff;
	text-decoration: none !important;
	white-space: nowrap;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.lalmek-quicknav__link:hover {
	background: #0055A4;
	color: #fff;
	border-color: #0055A4;
}

@media (max-width: 768px) {
	.lalmek-quicknav__inner {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 4px;
	}

	.lalmek-quicknav__link {
		flex-shrink: 0;
	}
}

/* ══════════════════════════════════════════
   Stats Bar [lalmek_stats_bar]
   ══════════════════════════════════════════ */

.lalmek-statsbar {
	padding: 40px 0;
}

.lalmek-statsbar__inner {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 24px;
	display: grid;
	gap: 0;
}

.lalmek-statsbar--cols-2 { grid-template-columns: repeat(2, 1fr); }
.lalmek-statsbar--cols-3 { grid-template-columns: repeat(3, 1fr); }
.lalmek-statsbar--cols-4 { grid-template-columns: repeat(4, 1fr); }
.lalmek-statsbar--cols-5 { grid-template-columns: repeat(5, 1fr); }

.lalmek-statsbar__item {
	text-align: center;
	border-right: 1px solid rgba(255,255,255,0.15);
	padding: 8px 16px;
}

.lalmek-statsbar__item:last-child {
	border-right: none;
}

.lalmek-statsbar__value {
	font-size: 2rem;
	font-weight: 700;
	color: #fff;
	line-height: 1.2;
}

.lalmek-statsbar__label {
	font-size: 0.8125rem;
	color: rgba(255,255,255,0.7);
	margin-top: 4px;
}

/* Light variant */
.lalmek-statsbar--light {
	border: 1px solid #E0E0E0;
	border-radius: 12px;
	overflow: hidden;
}

.lalmek-statsbar--light .lalmek-statsbar__item {
	border-right: 1px solid #E0E0E0;
}

.lalmek-statsbar--light .lalmek-statsbar__item:last-child {
	border-right: none;
}

.lalmek-statsbar--light .lalmek-statsbar__value {
	color: #0055A4;
}

.lalmek-statsbar--light .lalmek-statsbar__label {
	color: #616161;
}

@media (max-width: 768px) {
	.lalmek-statsbar__inner {
		grid-template-columns: 1fr 1fr;
	}

	.lalmek-statsbar__item {
		border-bottom: 1px solid rgba(255,255,255,0.15);
		padding: 16px;
	}

	.lalmek-statsbar__item:nth-child(even) {
		border-right: none;
	}

	.lalmek-statsbar__item:nth-last-child(-n+2) {
		border-bottom: none;
	}

	.lalmek-statsbar--light .lalmek-statsbar__item {
		border-bottom-color: #E0E0E0;
	}
}

/* ══════════════════════════════════════════
   Specs på produktkort [lalmek_products show_specs="yes"]
   ══════════════════════════════════════════ */

.lalmek-product-card-specs {
	display: flex;
	gap: 6px;
	font-size: 0.6875rem;
	padding-top: 0.75rem;
	margin-top: 0.75rem;
	border-top: 1px solid #f0f0f0;
	flex-wrap: wrap;
}

.lalmek-product-card-specs span {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	white-space: nowrap;
	background: #E6F0FA;
	color: #0055A4;
	font-weight: 500;
	padding: 3px 8px;
	border-radius: 100px;
}

/* ══════════════════════════════════════════
   Jämförelsetabell [lalmek_comparison_table]
   ══════════════════════════════════════════ */

.lalmek-comparison-table {
	margin-bottom: 2.5rem;
}

.lalmek-comparison-table h2 {
	font-size: 1.3rem;
	font-weight: 700;
	margin-bottom: 1rem;
}

/* Dold text för skärmläsare */
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Scrollcontainer — tangentbordsnavigation och fokusindikator */
.lalmek-comparison-table__scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid #d5dce6;
	border-radius: 10px;
	background: #fff;
	position: relative;
}

.lalmek-comparison-table__scroll:focus {
	outline: 2px solid #0055A4;
	outline-offset: 2px;
}

.lalmek-comparison-table__scroll:focus:not(:focus-visible) {
	outline: none;
}

.lalmek-comparison-table__scroll:focus-visible {
	outline: 2px solid #0055A4;
	outline-offset: 2px;
}

/* Tabellöverrides — tightare spacing för jämförelse */
.lalmek-specs-table--comparison {
	border: none;
	border-radius: 0;
	font-size: 0.8125rem;
	line-height: 1.4;
	table-layout: auto;
}

/* Kolumnhuvud */
.lalmek-specs-table--comparison thead th {
	padding: 10px 14px;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	position: sticky;
	top: 0;
	z-index: 2;
	background: #002242;
	border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.lalmek-specs-table--comparison thead th:last-child {
	border-right: none;
}

/* Sticky första kolumn (modellnamn) */
.lalmek-specs-table--comparison thead th:first-child {
	position: sticky;
	left: 0;
	z-index: 3;
	background: #002242;
}

.lalmek-specs-table--comparison tbody th:first-child,
.lalmek-specs-table--comparison tbody td:first-child {
	position: sticky;
	left: 0;
	z-index: 1;
	background: #fff;
	border-right: 1px solid #edf0f4;
}

.lalmek-specs-table--comparison tbody tr:nth-child(even) th:first-child,
.lalmek-specs-table--comparison tbody tr:nth-child(even) td:first-child {
	background: #f8f9fb;
}

.lalmek-specs-table--comparison tbody tr:hover th:first-child,
.lalmek-specs-table--comparison tbody tr:hover td:first-child {
	background: #e8f0fa;
}

.lalmek-comparison-table__highlight th:first-child,
.lalmek-comparison-table__highlight td:first-child {
	background: #fefce8 !important;
}

/* Dataceller */
.lalmek-specs-table--comparison td {
	padding: 10px 14px;
	font-size: 0.8125rem;
	color: #3a3f4b;
	white-space: nowrap;
	border-bottom: 1px solid #edf0f4;
}

.lalmek-specs-table--comparison tbody tr:nth-child(even) {
	background: #f8f9fb;
}

.lalmek-specs-table--comparison tbody tr:hover {
	background: #e8f0fa;
}

.lalmek-specs-table--comparison tbody tr:last-child td,
.lalmek-specs-table--comparison tbody tr:last-child th {
	border-bottom: none;
}

/* Produktcell (row header) med miniatyrbild och namn */
.lalmek-comparison-table__product {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
	white-space: nowrap;
	min-width: 180px;
}

.lalmek-comparison-table__product img {
	width: 36px;
	height: 36px;
	object-fit: contain;
	border-radius: 6px;
	background: #f0f3f7;
	flex-shrink: 0;
	padding: 2px;
}

.lalmek-comparison-table__product a {
	color: #0055A4;
	text-decoration: none !important;
	font-weight: 600;
	font-size: 0.8125rem;
}

.lalmek-comparison-table__product a:hover {
	text-decoration: underline !important;
	color: #002242;
}

/* Fokusindikator på länkar i tabellen */
.lalmek-comparison-table__product a:focus-visible {
	outline: 2px solid #0055A4;
	outline-offset: 2px;
	border-radius: 2px;
}

/* Markerad rad */
.lalmek-comparison-table__highlight {
	background: #fefce8 !important;
}

.lalmek-comparison-table__highlight:hover {
	background: #fef9c3 !important;
}

.lalmek-comparison-table__highlight td,
.lalmek-comparison-table__highlight th {
	border-bottom-color: #f5e6a3;
}

/* Fotnot */
.lalmek-comparison-table__note {
	font-size: 0.775rem;
	color: #6b7280;
	margin-top: 10px;
	line-height: 1.5;
}

/* ── Responsiv ─────────────────────────── */

@media (max-width: 768px) {
	.lalmek-comparison-table__scroll {
		border-radius: 8px;
	}

	.lalmek-specs-table--comparison thead th,
	.lalmek-specs-table--comparison td {
		padding: 8px 10px;
		font-size: 0.75rem;
	}

	.lalmek-specs-table--comparison thead th {
		font-size: 0.6875rem;
	}

	.lalmek-comparison-table__product {
		min-width: 130px;
		gap: 6px;
	}

	.lalmek-comparison-table__product img {
		width: 28px;
		height: 28px;
	}

	.lalmek-comparison-table__product a,
	.lalmek-comparison-table__product span {
		font-size: 0.75rem;
	}
}

@media (max-width: 480px) {
	.lalmek-comparison-table__product {
		min-width: 110px;
	}

	.lalmek-comparison-table__product img {
		display: none;
	}
}

/* ── Inga produkter ───────────────────── */

.lalmek-no-products {
	text-align: center;
	color: #888;
	padding: 3rem 1rem;
}
