/* Supplier landing page – everything scoped under .sfs so Salient's
   global styles and this file don't fight. Font is inherited from Salient. */

.sfs {
	--sfs-brand: #4A3B32;      /* overridden per supplier via brand_color */
	--sfs-teal: #2E6F64;
	--sfs-teal-dark: #1F4F47;
	--sfs-chip: #E3EEEB;
	--sfs-chip-text: #22564D;
	--sfs-ink: #1F2A28;
	--sfs-body: #3D4845;
	--sfs-muted: #5A6461;
	--sfs-line: #E7E1D4;
	--sfs-card: #FFFFFF;

	max-width: 1160px;
	margin: 0 auto;
	padding: 20px 0 72px;
	color: var(--sfs-ink);
}

.sfs h1, .sfs h2, .sfs h3 { color: var(--sfs-ink); margin: 0; }
.sfs p { margin: 0; padding: 0; }
.sfs ul, .sfs ol { list-style: none; margin: 0; padding: 0; }

/* Breadcrumbs */
.sfs .sfs-crumbs { font-size: 14px; color: var(--sfs-muted); margin-bottom: 16px; display: flex; gap: 8px; }
.sfs .sfs-crumbs a { color: var(--sfs-muted); }
.sfs .sfs-crumbs span:last-child { color: var(--sfs-ink); font-weight: 600; }

/* Banner: image if present, brand-colored band if not */
.sfs .sfs-banner { border-radius: 24px; overflow: hidden; background: var(--sfs-brand); }
.sfs .sfs-banner.has-image { aspect-ratio: auto; }
.sfs .sfs-banner.is-empty { height: 120px; }
.sfs .sfs-banner img { width: 100%; height: auto; display: block; } /* full banner, never cropped */

/* Logo card overlapping the banner */
.sfs .sfs-logo {
	width: 136px; height: 136px; margin: -64px 0 0 32px; position: relative;
	background: var(--sfs-card); border: 1px solid var(--sfs-line); border-radius: 24px;
	box-shadow: 0 8px 24px rgba(31, 42, 40, .10);
	display: flex; align-items: center; justify-content: center; padding: 16px; box-sizing: border-box;
}
.sfs .sfs-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sfs .sfs-logo span { font-size: 40px; font-weight: 800; text-transform: lowercase; }

/* Hero */
.sfs .sfs-hero { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding: 24px 32px 0; }
.sfs .sfs-hero__main { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.sfs .sfs-hero h1 { font-size: clamp(40px, 5vw, 56px); line-height: 1.05; font-weight: 800; letter-spacing: -.03em; }
.sfs .sfs-tagline { font-size: 22px; line-height: 1.4; color: var(--sfs-body); }

.sfs .sfs-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sfs .sfs-chips li {
	height: 34px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center;
	background: var(--sfs-chip); color: var(--sfs-chip-text); font-size: 14px; font-weight: 600;
}

.sfs .sfs-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; font-size: 15px; color: var(--sfs-muted); }
.sfs .sfs-meta > a { color: var(--sfs-chip-text); font-weight: 600; }
.sfs .sfs-social { display: inline-flex; gap: 8px; }
.sfs .sfs-social a {
	width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--sfs-line);
	background: var(--sfs-card); color: var(--sfs-ink);
	display: inline-flex; align-items: center; justify-content: center;
}

/* Order card */
.sfs .sfs-order {
	flex: 1 1 340px; min-width: 0; box-sizing: border-box;
	background: var(--sfs-card); border: 1px solid var(--sfs-line); border-radius: 24px; padding: 28px;
	display: flex; flex-direction: column; gap: 16px;
}
.sfs .sfs-order h2 { font-size: 22px; font-weight: 700; }
.sfs .sfs-order p { font-size: 16px; line-height: 1.55; color: var(--sfs-body); }
.sfs .sfs-login { text-align: center; font-size: 15px; }
.sfs .sfs-login a { color: var(--sfs-chip-text); font-weight: 700; }
.sfs .sfs-checks { border-top: 1px solid #EFEAE0; padding-top: 16px; display: flex; flex-direction: column; gap: 12px; font-size: 15px; color: var(--sfs-body); }
.sfs .sfs-checks li { padding-left: 28px; position: relative; }
.sfs .sfs-checks li::before {
	content: ""; position: absolute; left: 2px; top: 4px; width: 12px; height: 7px;
	border-left: 2.4px solid var(--sfs-teal); border-bottom: 2.4px solid var(--sfs-teal); transform: rotate(-45deg);
}

/* Buttons */
.sfs .sfs-btn {
	display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 28px;
	border-radius: 14px; background: var(--sfs-teal); color: #fff; font-size: 16px; font-weight: 700; text-decoration: none;
}
.sfs .sfs-btn:hover { background: var(--sfs-teal-dark); color: #fff; }
.sfs .sfs-btn--light { background: #FAF7F0; color: var(--sfs-teal-dark); }
.sfs .sfs-btn--light:hover { background: #fff; color: var(--sfs-teal-dark); }
.sfs a:focus-visible { outline: 3px solid var(--sfs-teal); outline-offset: 2px; }

/* About */
.sfs .sfs-about { margin-top: 72px; padding: 0 32px; display: flex; flex-wrap: wrap; gap: 40px; }
.sfs .sfs-about h2 { flex: 1 1 220px; font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.sfs .sfs-about__text { flex: 999 1 480px; min-width: 0; max-width: 720px; font-size: 18px; line-height: 1.65; color: var(--sfs-body); }
.sfs .sfs-about__text p + p { margin-top: 16px; }

/* Steps */
.sfs .sfs-steps { margin-top: 72px; padding: 0 32px; }
.sfs .sfs-steps h2 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 24px; }
.sfs .sfs-steps ol { display: flex; flex-wrap: wrap; gap: 20px; counter-reset: sfs-step; }
.sfs .sfs-steps li {
	flex: 1 1 240px; background: var(--sfs-card); border: 1px solid var(--sfs-line); border-radius: 20px; padding: 24px;
	counter-increment: sfs-step;
}
.sfs .sfs-steps li::before {
	content: counter(sfs-step); width: 36px; height: 36px; border-radius: 10px; margin-bottom: 14px;
	display: flex; align-items: center; justify-content: center;
	background: var(--sfs-chip); color: var(--sfs-chip-text); font-weight: 800;
}
.sfs .sfs-steps h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.sfs .sfs-steps p { font-size: 15px; line-height: 1.55; color: var(--sfs-muted); }

/* Closing CTA */
.sfs .sfs-cta {
	margin-top: 72px; border-radius: 28px; background: var(--sfs-teal-dark); padding: 48px 40px;
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
}
.sfs .sfs-cta > div { flex: 999 1 420px; min-width: 0; }
.sfs .sfs-cta h2 { color: #fff; font-size: 32px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 10px; }
.sfs .sfs-cta p { color: #D5E6E2; font-size: 16px; line-height: 1.6; }
.sfs .sfs-cta p a { color: #fff; font-weight: 700; }

/* Phone */
@media (max-width: 690px) {
	.sfs { padding-top: 12px; }
	.sfs .sfs-hero, .sfs .sfs-about, .sfs .sfs-steps { padding-left: 0; padding-right: 0; }
	.sfs .sfs-logo { width: 104px; height: 104px; margin-left: 16px; margin-top: -48px; }
	.sfs .sfs-cta { padding: 32px 24px; }
	.sfs .sfs-cta .sfs-btn { width: 100%; }
}

/* ---------- Salient overrides ----------
   Salient styles lists, links and headings in the content area globally;
   these win over it inside .sfs only. */
body .sfs ul, body .sfs ol { list-style: none !important; margin: 0 !important; padding: 0 !important; }
body .sfs ul li, body .sfs ol li { list-style: none !important; margin-left: 0 !important; line-height: 1.5; }
body .sfs ul li::marker, body .sfs ol li::marker { content: none; }
body .sfs h1, body .sfs h2, body .sfs h3 { line-height: 1.2; }
body .sfs .sfs-order h2 { font-size: 22px; line-height: 1.25; }
body .sfs .sfs-checks li { padding-left: 28px !important; }
body .sfs .sfs-steps li::before { font-size: 16px; line-height: 1; }

body .sfs a.sfs-btn, body .sfs a.sfs-btn:hover { color: #fff !important; background: #2E6F64 !important; opacity: 1 !important; }
body .sfs a.sfs-btn:hover { background: #1F4F47 !important; }
body .sfs a.sfs-btn--light, body .sfs a.sfs-btn--light:hover { background: #FAF7F0 !important; color: #1F4F47 !important; }
body .sfs .sfs-meta > a, body .sfs .sfs-login a { color: #22564D !important; opacity: 1 !important; }
body .sfs .sfs-cta p a { color: #fff !important; opacity: 1 !important; }
body .sfs .sfs-banner img { width: 100% !important; height: auto !important; max-width: 100% !important; margin: 0 !important; }
body .sfs .sfs-about h2 { color: #1F2A28 !important; }
body .sfs .sfs-about__text, body .sfs .sfs-about__text * { color: #3D4845 !important; }

/* Leap Delivery */
body .sfs .sfs-leap-badge {
	align-self: flex-start; display: inline-flex; align-items: center; height: 34px; padding: 0 14px;
	border-radius: 999px; border: 1px solid #CFE0DB; background: #fff; color: #22564D !important;
	font-size: 14px; font-weight: 600; text-decoration: none;
}
.sfs .sfs-leap {
	margin-top: 72px; background: #fff; border: 1px solid var(--sfs-line); border-radius: 24px; padding: 32px;
	display: flex; flex-wrap: wrap; align-items: center; gap: 32px; scroll-margin-top: 120px;
}
.sfs .sfs-leap__logo { flex: 0 0 160px; }
body .sfs .sfs-leap__logo img { width: 160px !important; height: auto !important; display: block; }
.sfs .sfs-leap__text { flex: 999 1 380px; min-width: 0; }
body .sfs .sfs-leap h2 { font-size: 24px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 10px; color: #1F2A28 !important; }
body .sfs .sfs-leap p { font-size: 16px; line-height: 1.6; color: #3D4845 !important; max-width: 640px; }

/* Vad är Stockfiller? */
body .sfs .sfs-about__text strong { font-weight: 700; }
body .sfs .sfs-about--sf .sfs-about__text a { color: #22564D !important; font-weight: 700; }

/* Description in hero */
body .sfs .sfs-hero__desc { max-width: 640px; margin-top: 8px; }
body .sfs .sfs-hero__desc, body .sfs .sfs-hero__desc * { color: #3D4845 !important; font-size: 17px; line-height: 1.65; }
body .sfs .sfs-hero__desc p + p { margin-top: 12px; }

/* Social icons: Salient's link color was turning them white */
body .sfs .sfs-social a { color: #1F2A28 !important; background: #fff !important; opacity: 1 !important; }
body .sfs .sfs-social a svg { stroke: #1F2A28 !important; }
body .sfs .sfs-social a:hover { border-color: #2E6F64; }
body .sfs .sfs-social a:hover svg { stroke: #2E6F64 !important; }

/* Products */
.sfs .sfs-products { margin-top: 72px; padding: 0 32px; }
.sfs .sfs-products__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
body .sfs .sfs-products__head h2 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: #1F2A28 !important; }
body .sfs .sfs-products__head a { color: #22564D !important; font-weight: 700; font-size: 15px; }
body .sfs .sfs-products__grid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
body .sfs .sfs-products__grid li { padding: 0 !important; }
body .sfs a.sfs-product {
	display: flex; flex-direction: column; gap: 6px; height: 100%; box-sizing: border-box;
	background: #fff; border: 1px solid var(--sfs-line); border-radius: 20px; padding: 16px 16px 20px;
	text-decoration: none; color: #1F2A28 !important; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
body .sfs a.sfs-product:hover { border-color: #CFE0DB; box-shadow: 0 6px 20px rgba(31, 42, 40, .08); }
.sfs .sfs-product__img {
	aspect-ratio: 1; border-radius: 12px; background: #F5F2EA; margin-bottom: 8px;
	display: flex; align-items: center; justify-content: center; overflow: hidden; color: #A9B2AF;
}
body .sfs .sfs-product__img img { width: 100% !important; height: 100% !important; object-fit: contain; padding: 12px; box-sizing: border-box; margin: 0 !important; background: #fff; }
body .sfs .sfs-product__brand { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #5A6461 !important; }
body .sfs .sfs-product__name {
	font-size: 15px; font-weight: 600; line-height: 1.4; color: #1F2A28 !important;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
body .sfs .sfs-product__price { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 600; color: #22564D !important; }
@media (max-width: 690px) {
	.sfs .sfs-products { padding: 0; }
	body .sfs .sfs-products__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

/* Products: fully visible from the start (Salient fades links until hover) */
body .sfs a.sfs-product,
body .sfs a.sfs-product *,
body .sfs a.sfs-product img { opacity: 1 !important; filter: none !important; }
body .sfs a.sfs-product { box-shadow: 0 2px 10px rgba(31, 42, 40, .06); }
body .sfs a.sfs-product:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(31, 42, 40, .10); border-color: #CFE0DB; }
body .sfs .sfs-product__name { color: #1F2A28 !important; }
body .sfs .sfs-product__brand { color: #4A5552 !important; }
@media (prefers-reduced-motion: reduce) { body .sfs a.sfs-product:hover { transform: none; } }

/* Four equal columns on desktop, so the row spans the full width */
@media (min-width: 691px) {
	body .sfs .sfs-products__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Leap badge: fully visible from the start */
body .sfs a.sfs-leap-badge,
body .sfs a.sfs-leap-badge:hover { opacity: 1 !important; filter: none !important; }
body .sfs a.sfs-leap-badge {
	background: #E3EEEB !important; border-color: #B9D3CC !important; color: #1F4F47 !important;
	font-weight: 700; transition: background-color .15s ease, border-color .15s ease;
}
body .sfs a.sfs-leap-badge:hover { background: #D3E5E0 !important; border-color: #2E6F64 !important; }
