/**
 * CST Sortimentsöversikt. Förlaga: analys/skiss-sortiment-v1.html (mockupens formspråk).
 * Bilder i CSS sätts som variabler i includes/frontend.css.php (absoluta adresser).
 */

.cst-sov {
	--cst-sov-deep: #11362f;
	--cst-sov-deep2: #0c2822;
	--cst-sov-lime: #c1ff72;
	--cst-sov-svart: #0b0f0d;
	--cst-sov-bakgrund: #f3f5ef;
	--cst-sov-yta: #fff;
	--cst-sov-ink: #152621;
	--cst-sov-text: #26352f;
	--cst-sov-dampad: #4f5f59;
	--cst-sov-linje: #cfd8cf;
	--cst-sov-rubrik: var(--cotheme-font-heading, "Bebas Neue", Impact, sans-serif);
	--cst-sov-mono: var(--cst-font-mono, "JetBrains Mono", Menlo, monospace);
	background: var(--cst-sov-bakgrund);
	color: var(--cst-sov-text);
}

.cst-sov *,
.cst-sov *::before,
.cst-sov *::after { box-sizing: border-box; }

.cst-sov .cst-sov__hopplista,
.cst-sov .cst-sov__rutnat,
.cst-sov .cst-sov__markeslista,
.cst-sov .cst-sov__hjalplista { list-style: none; margin: 0; padding: 0; }
.cst-sov .cst-sov__rutnat > li,
.cst-sov .cst-sov__markeslista > li,
.cst-sov .cst-sov__hjalplista > li,
.cst-sov .cst-sov__hopplista > li { margin: 0; }
:where(.cst-sov) a { color: inherit; text-decoration: none; }
.cst-sov h1, .cst-sov h2, .cst-sov h3 {
	font-family: var(--cst-sov-rubrik);
	font-weight: 400;
	line-height: .95;
	letter-spacing: .01em;
	margin: 0;
	text-transform: uppercase;
}
:where(.cst-sov) p { margin: 0; }

.cst-sov__wrap { max-width: 1240px; margin: 0 auto; padding-inline: 24px; position: relative; }

.cst-sov__etikett,
.cst-sov__nr,
.cst-sov__antal,
.cst-sov__nyckeltal,
.cst-sov__markeetikett {
	font-family: var(--cst-sov-mono);
	font-size: 12px;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.cst-sov__etikett { color: var(--cst-sov-dampad); margin-bottom: 10px; display: block; }

/* Knappar – nollställ CoThemes globala button-stilar */
.cst-sov .cst-sov__knapp {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 13px 22px;
	border-radius: 999px;
	border: 1.5px solid transparent;
	font-family: inherit;
	font-weight: 600;
	font-size: 14px;
	line-height: 1.2;
	cursor: pointer;
	box-shadow: none;
	transition: background-color .15s, color .15s, border-color .15s;
}
.cst-sov .cst-sov__knapp--lime { background: var(--cst-sov-lime); color: var(--cst-sov-deep); }
.cst-sov .cst-sov__knapp--lime:hover,
.cst-sov .cst-sov__knapp--lime:focus-visible { background: #d3ff97; color: var(--cst-sov-deep); }
.cst-sov .cst-sov__knapp--kontur { border-color: var(--cst-sov-deep); color: var(--cst-sov-deep); background: transparent; }
.cst-sov .cst-sov__knapp--kontur:hover,
.cst-sov .cst-sov__knapp--kontur:focus-visible { background: var(--cst-sov-deep); color: #fff; }
.cst-sov .cst-sov__svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.cst-sov a:focus-visible,
.cst-sov button:focus-visible,
.cst-sov input:focus-visible { outline: 2px solid var(--cst-sov-lime); outline-offset: 2px; }

/* Huvud */
.cst-sov__huvud { background: var(--cst-sov-deep); color: #fff; position: relative; overflow: hidden; }
.cst-sov__topo {
	position: absolute;
	inset: 0 0 0 auto;
	width: 60%;
	background: var(--cst-sov-topo-hog) no-repeat left 42% / cover;
	opacity: .45;
	pointer-events: none;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 38%);
	mask-image: linear-gradient(90deg, transparent, #000 38%);
}
.cst-sov__huvud-inre {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
	gap: 40px;
	align-items: end;
	padding-block: 26px 52px;
}
.cst-sov__smulor .cst-smulor { color: #a9c2b6; font-family: var(--cst-sov-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; display: flex; gap: 10px; flex-wrap: wrap; }
.cst-sov__smulor .cst-smulor a:hover { color: #fff; }
.cst-sov__smulor .cst-smulor__nu { color: #fff; }
.cst-sov .cst-sov__h1 { font-size: var(--cst-h-band); color: #fff; margin-top: 18px; }
.cst-sov__ingress { max-width: 56ch; color: #e2ebe6; margin-top: 14px; font-size: 16px; line-height: 1.6; }
.cst-sov__nyckeltal { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 22px; color: var(--cst-sov-lime); }
.cst-sov__huvud .cst-sov__etikett { color: var(--cst-sov-lime); }
.cst-sov__sokfalt { display: flex; gap: 8px; background: #fff; border-radius: 999px; padding: 6px; }
.cst-sov .cst-sov__sokfalt input[type="search"] {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	outline-offset: 4px;
	padding: 0 16px;
	font: inherit;
	font-size: 15px;
	color: var(--cst-sov-ink);
	border-radius: 999px;
	height: auto;
}
.cst-sov .cst-sov__sokfalt input[type="search"]::placeholder { color: var(--cst-sov-dampad); }

/* Hoppmeny */
.cst-sov__hopp { background: var(--cst-sov-yta); border-bottom: 1px solid var(--cst-sov-linje); }
.cst-sov__hopp-inre { display: flex; align-items: center; gap: 16px; padding-block: 12px; }
.cst-sov__hopplista { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.cst-sov__hopplista a {
	display: inline-flex;
	gap: 10px;
	align-items: baseline;
	white-space: nowrap;
	padding: 9px 16px;
	border: 1px solid var(--cst-sov-linje);
	border-radius: 999px;
	font-weight: 600;
	font-size: 14px;
	color: var(--cst-sov-ink);
}
.cst-sov__hopplista a:hover { border-color: var(--cst-sov-deep); }
.cst-sov__nr { color: var(--cst-sov-dampad); font-size: 11px; }
.cst-sov__alla { white-space: nowrap; font-weight: 600; font-size: 14px; color: var(--cst-sov-deep); border-bottom: 2px solid var(--cst-sov-lime); padding-bottom: 2px; }

/* Områden */
.cst-sov__omrade { padding-block: 64px 8px; scroll-margin-top: 90px; }
.cst-sov__omradeshuvud { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.cst-sov .cst-sov__h2 { font-size: clamp(40px, 5vw, 64px); color: var(--cst-sov-ink); }
.cst-sov__omradesingress { max-width: 62ch; margin-top: 10px; line-height: 1.6; }
.cst-sov__mer { font-weight: 600; font-size: 14px; color: var(--cst-sov-deep); border-bottom: 2px solid var(--cst-sov-lime); padding-bottom: 2px; }

.cst-sov__rutnat {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	border-top: 1px solid var(--cst-sov-deep);
	border-left: 1px solid var(--cst-sov-deep);
}
.cst-sov__rutnat > li {
	grid-column: span var(--cst-sov-span, 1);
	border-right: 1px solid var(--cst-sov-deep);
	border-bottom: 1px solid var(--cst-sov-deep);
	min-width: 0;
}
.cst-sov__kortlank { display: flex; flex-direction: column; height: 100%; background: var(--cst-sov-bakgrund); transition: background-color .15s; }
.cst-sov__kortlank:hover { background: var(--cst-sov-yta); }
.cst-sov__bild { position: relative; aspect-ratio: 4 / 3; background: #fff; border-bottom: 1px solid var(--cst-sov-linje); overflow: hidden; }
.cst-sov__kort--stor .cst-sov__bild { aspect-ratio: 8 / 3; }
.cst-sov__bild img {
	position: absolute;
	inset: 18px;
	width: calc(100% - 36px);
	height: calc(100% - 36px);
	object-fit: contain;
	mix-blend-mode: multiply;
}
.cst-sov__korttext { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.cst-sov .cst-sov__kortrubrik { font-size: 30px; color: var(--cst-sov-ink); hyphens: auto; overflow-wrap: anywhere; }
.cst-sov__kort--stor .cst-sov__kortrubrik { font-size: 44px; }
.cst-sov__kortrad { display: flex; justify-content: space-between; align-items: center; color: var(--cst-sov-dampad); margin-top: auto; }
.cst-sov__pil .cst-sov__svg { width: 18px; height: 18px; transition: transform .2s; }
.cst-sov__kortlank:hover .cst-sov__pil .cst-sov__svg { transform: translateX(4px); color: var(--cst-sov-deep); }

.cst-sov__guide {
	background: var(--cst-sov-deep);
	color: #fff;
	padding: 26px 26px 28px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	position: relative;
	overflow: hidden;
}
.cst-sov__guide::before { content: ""; position: absolute; inset: 0; background: var(--cst-sov-topo-bred) no-repeat right center / cover; opacity: .2; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%); mask-image: linear-gradient(90deg, transparent, #000 40%); }
.cst-sov__guide > * { position: relative; }
.cst-sov__guide .cst-sov__etikett { color: var(--cst-sov-lime); margin-bottom: 0; }
.cst-sov .cst-sov__guiderubrik { font-size: 40px; color: #fff; }
.cst-sov__guide p { color: #e2ebe6; max-width: 44ch; line-height: 1.6; }
.cst-sov__guide .cst-sov__knapp { align-self: flex-start; margin-top: auto; }

.cst-sov__fyll { background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(17, 54, 47, .05) 14px 15px); }
.cst-sov__fyll--text { background: var(--cst-sov-yta); padding: 26px 24px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
.cst-sov__fyll--text .cst-sov__etikett { margin-bottom: 0; }
.cst-sov__fylltext { font-weight: 600; color: var(--cst-sov-ink); max-width: 40ch; line-height: 1.5; }

/* Varumärken */
.cst-sov__marken { background: var(--cst-sov-deep); color: #fff; margin-top: 72px; padding-block: 64px; position: relative; overflow: hidden; }
.cst-sov__topo--bred { inset: 0; width: auto; background: var(--cst-sov-topo-bred) no-repeat center top / cover; opacity: .14; -webkit-mask-image: linear-gradient(180deg, #000, transparent); mask-image: linear-gradient(180deg, #000, transparent); }
.cst-sov__marken .cst-sov__h2 { color: #fff; }
.cst-sov__marken .cst-sov__etikett { color: var(--cst-sov-lime); }
.cst-sov__marken .cst-sov__mer { color: #fff; }
.cst-sov__markeslista {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	border-top: 1px solid rgba(193, 255, 114, .35);
	border-left: 1px solid rgba(193, 255, 114, .35);
}
.cst-sov__marke { border-right: 1px solid rgba(193, 255, 114, .35); border-bottom: 1px solid rgba(193, 255, 114, .35); min-width: 0; }
.cst-sov__markelank { display: flex; flex-direction: column; gap: 12px; height: 100%; min-height: 250px; padding: 28px 22px 22px; transition: background-color .15s; }
a.cst-sov__markelank:hover { background: var(--cst-sov-deep2); }
.cst-sov__logga { display: flex; align-items: center; height: 46px; margin-bottom: 8px; }
.cst-sov__logga img { height: 34px; width: auto; max-width: 150px; object-fit: contain; object-position: left center; }
.cst-sov__loggatext { font-family: var(--cst-sov-rubrik); font-size: 34px; text-transform: uppercase; }
.cst-sov__markeetikett { align-self: flex-start; color: var(--cst-sov-deep); background: var(--cst-sov-lime); padding: 3px 7px; font-size: 10px; }
.cst-sov__marketext { color: #e2ebe6; font-size: 14px; line-height: 1.5; }
.cst-sov__marke .cst-sov__antal { color: var(--cst-sov-lime); margin-top: auto; }

/* Hjälpkort */
.cst-sov__hjalp { padding-block: 72px; }
.cst-sov__hjalplista { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cst-sov__hjalpkort { background: var(--cst-sov-yta); border: 1px solid var(--cst-sov-linje); padding: 28px; display: flex; flex-direction: column; gap: 10px; min-height: 270px; }
.cst-sov__hjalpkort p { line-height: 1.6; }
.cst-sov .cst-sov__hjalprubrik { font-size: 38px; color: var(--cst-sov-ink); }
.cst-sov__hjalpkort .cst-sov__knapp { align-self: flex-start; margin-top: auto; }
.cst-sov__hjalpkort--mork { background: var(--cst-sov-deep); border-color: var(--cst-sov-deep); color: #fff; }
.cst-sov__hjalpkort--mork .cst-sov__hjalprubrik { color: #fff; }
.cst-sov__hjalpkort--mork .cst-sov__etikett { color: var(--cst-sov-lime); }
.cst-sov__hjalpkort--mork p { color: #e2ebe6; }

/* Surfplatta */
@media (max-width: 1000px) {
	.cst-sov__huvud-inre { grid-template-columns: 1fr; gap: 28px; }
	.cst-sov__rutnat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cst-sov__fyll { display: none; }
	.cst-sov__markeslista { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cst-sov__hjalplista { grid-template-columns: minmax(0, 1fr); }
	.cst-sov__hjalpkort { min-height: 0; padding: 22px 20px; }
}

/* Mobil */
@media (max-width: 640px) {
	.cst-sov__wrap { padding-inline: 16px; }
	.cst-sov__topo { width: 100%; opacity: .25; }
	.cst-sov__nyckeltal { gap: 8px 14px; }
	.cst-sov__alla { display: none; }
	.cst-sov__omrade { padding-block: 48px 0; }
	.cst-sov__kort--stor .cst-sov__bild { aspect-ratio: 4 / 3; }
	.cst-sov__korttext { padding: 12px 12px 14px; }
	.cst-sov .cst-sov__kortrubrik { font-size: 21px; }
	.cst-sov__kort--stor .cst-sov__kortrubrik { font-size: 34px; }
	.cst-sov .cst-sov__guiderubrik { font-size: 32px; }
	.cst-sov__marken { margin-top: 56px; padding-block: 48px; }
	.cst-sov__markeslista { grid-template-columns: 1fr; }
	.cst-sov__markelank { min-height: 0; }
	.cst-sov__hjalp { padding-block: 48px; }
}

@media (prefers-reduced-motion: reduce) {
	.cst-sov * { transition: none !important; }
}
