/* Front page (.fp-*). Load shop-base.css first. */

/* Guards against horizontal scroll. clip, not hidden: hidden creates a scroll container,
   which breaks position: sticky inside. */
.fp { overflow-x: clip; }

/* width: 100% is needed: in the .fp-sections flex column, auto margins turn off stretch,
   so a section would shrink to its content (nothing, while images are still lazy) */
.fp-wrap { width: 100%; max-width: 1170px; margin-left: auto; margin-right: auto; padding: 0 15px; }
.fp-sections { display: flex; flex-direction: column; gap: 48px; padding: 34px 0 40px; }
@media (min-width: 992px) { .fp-sections { gap: 84px; padding: 56px 0 40px; } }

/* Icons and arrows */
.fp-icon, .fp-arrow {
	fill: none; stroke: currentColor; stroke-width: 1.8;
	stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto;
}
.fp-icon { width: 28px; height: 28px; }
.fp-arrow { width: 16px; height: 16px; stroke-width: 2; vertical-align: -2px; }

/* Headings */
.fp-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 18px; }
.fp-head-text { display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; min-width: 0; }
.fp-h2 { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.1; color: var(--sk-ink); letter-spacing: -0.01em; }
.fp-lead { margin: 0; font-size: 15px; line-height: 1.55; color: var(--sk-text); max-width: 62ch; }
.fp-head-link { font-size: 15px; font-weight: 500; white-space: nowrap; }
@media (min-width: 768px) {
	.fp-h2 { font-size: 30px; }
	.fp-lead { font-size: 16px; line-height: 1.6; }
	.fp-head { margin-bottom: 26px; }
}

/* Hero: edge to edge, always the whole image
   No fixed height or object-fit, so text and subject in the banner are never cropped.
   Phones get a separate, narrower image (frontpage_hero_mobile_img_url), not a CSS crop. */
.fp-hero { display: block; background: var(--sk-soft); }
.fp-hero img { display: block; width: 100%; height: auto; }

/* Full-width campaign banner
   One section for photo and plain-color campaigns: a photo sits behind a veil, so the text stays readable.
   Colors are variables on the banner, so a new theme is one more class.
   Edge to edge, so it is outside .fp-wrap; .fp-promo-inner centers the content. */
.fp-promo {
	--promo-bg: var(--sk-ink); --promo-fg: #fff; --promo-line: rgba(255, 255, 255, .7);
	position: relative; display: block; overflow: hidden;
	background: var(--promo-bg); color: var(--promo-fg);
	padding: 36px 0 32px; text-align: center;
}
@media (min-width: 768px) { .fp-promo { padding: 62px 0 54px; } }
.fp-promo--lav { padding: 22px 0 20px; }
@media (min-width: 768px) { .fp-promo--lav { padding: 30px 0 28px; } }
.fp-promo--rod { --promo-bg: #b2402f; }
.fp-promo--brand { --promo-bg: var(--sk-accent); }
.fp-promo--sand { --promo-bg: var(--sk-soft); --promo-fg: var(--sk-ink); --promo-line: rgba(43, 49, 64, .35); }
a.fp-promo:hover { color: var(--promo-fg); text-decoration: none; }
a.fp-promo:hover .fp-promo-title { text-decoration: underline; }

/* Photo variant: the image fills the banner and the veil keeps the text readable */
.fp-promo-media { position: absolute; inset: 0; display: block; }
.fp-promo-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.fp-promo-veil { position: absolute; inset: 0; background: linear-gradient(to right, rgba(20, 26, 34, .72), rgba(20, 26, 34, .42) 55%, rgba(20, 26, 34, .66)); }
.fp-promo--foto { --promo-bg: #3c4a52; }

.fp-promo-inner {
	position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px;
	width: 100%; max-width: 1170px; margin: 0 auto; padding: 0 15px;
}
/* skisport-v2.css sets a { color: ... !important }, so the texts here set their color explicitly
   and the pill text sits in a <span> the rule can't reach (same trick as .sk-t-* in shop-base.css) */
.fp-promo-kicker { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .85; color: var(--promo-fg); }
.fp-promo-title { font-size: 28px; font-weight: 700; line-height: 1.02; letter-spacing: -.02em; color: var(--promo-fg); text-wrap: balance; }
@media (min-width: 768px) { .fp-promo-title { font-size: 40px; } }
@media (min-width: 1200px) { .fp-promo-title { font-size: 46px; } }
.fp-promo-sub { font-size: 15px; max-width: 56ch; opacity: .9; color: var(--promo-fg); }
@media (min-width: 768px) { .fp-promo-sub { font-size: 16px; } }

/* Shortcuts. On phones they scroll sideways inside the row instead of wrapping onto four lines */
.fp-promo-pills { display: flex; gap: 10px; margin-top: 10px; max-width: 100%; }
@media (max-width: 575.98px) {
	.fp-promo-pills { align-self: stretch; overflow-x: auto; overscroll-behavior-x: contain; padding-bottom: 4px; }
}
@media (min-width: 576px) { .fp-promo-pills { flex-wrap: wrap; justify-content: center; } }
.fp-promo-pill {
	display: inline-flex; align-items: center; flex: 0 0 auto; min-height: 40px; padding: 0 18px;
	border: 1px solid var(--promo-line); border-radius: 22px;
	color: var(--promo-fg); font-size: 14.5px; white-space: nowrap;
	transition: background-color .15s ease, border-color .15s ease;
}
.fp-promo-pill:hover { background: rgba(255, 255, 255, .14); border-color: var(--promo-fg); color: var(--promo-fg); text-decoration: none; }
.fp-promo--sand .fp-promo-pill:hover { background: rgba(43, 49, 64, .07); }
.fp-promo-pill-t { color: var(--promo-fg); }
.fp-promo-pill--fill { background: var(--promo-fg); color: var(--promo-bg); border-color: var(--promo-fg); font-weight: 500; }
.fp-promo-pill--fill .fp-promo-pill-t { color: var(--promo-bg); }
.fp-promo-pill--fill:hover { background: var(--promo-fg); color: var(--promo-bg); opacity: .88; }

/* Left-aligned: usually with a photo whose subject is on the right */
.fp-promo--venstre { text-align: left; }
.fp-promo--venstre .fp-promo-inner { align-items: flex-start; }
@media (min-width: 576px) { .fp-promo--venstre .fp-promo-pills { justify-content: flex-start; } }

/* USP row below the hero
   Hidden on phones, where the four bullets pushed the products two rows down. */
.fp-usp { display: none; }
@media (min-width: 768px) {
	.fp-usp {
		display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px;
		padding: 18px 0; border-bottom: 1px solid var(--sk-line);
	}
}
@media (min-width: 992px) { .fp-usp { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 26px 0; } }
.fp-usp-item { display: flex; align-items: center; gap: 12px; min-width: 0; }
.fp-usp-item .fp-icon { color: var(--sk-accent); width: 24px; height: 24px; }
@media (min-width: 992px) { .fp-usp-item { gap: 14px; padding: 0 10px; } .fp-usp-item .fp-icon { width: 28px; height: 28px; } }
.fp-usp-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fp-usp-title { font-size: 14px; font-weight: 700; color: var(--sk-ink); }
.fp-usp-sub { font-size: 13px; color: var(--sk-text); }
@media (max-width: 991.98px) { .fp-usp-sub { display: none; } }
@media (min-width: 992px) { .fp-usp-title { font-size: 15px; } }

/* Grids */
.fp-grid { display: grid; gap: 20px; }
.fp-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fp-grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
.fp-grid--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
@media (min-width: 768px) {
	.fp-grid--3 { gap: 20px; }
	.fp-grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 18px; }
	.fp-grid--6 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 16px; }
}
@media (min-width: 992px) {
	.fp-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 30px 20px; }
	.fp-grid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* Photo tile with text at the bottom */
.fp-tile {
	position: relative; display: block; overflow: hidden;
	border-radius: var(--sk-radius); background: var(--sk-soft);
}
.fp-tile img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .4s ease; }
.fp-tile:hover img { transform: scale(1.03); }
.fp-tile-shade {
	position: absolute; left: 0; right: 0; bottom: 0; height: 62%;
	background: linear-gradient(to top, rgba(42, 49, 64, .85), rgba(42, 49, 64, 0));
}
.fp-tile-body { position: absolute; left: 14px; right: 14px; bottom: 12px; display: flex; flex-direction: column; gap: 5px; }
.fp-tile-title { color: #fff; font-size: 18px; font-weight: 700; line-height: 1.1; }
.fp-tile-sub { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-size: 13px; font-weight: 500; opacity: .92; }
@media (max-width: 767.98px) { .fp-grid--3 .fp-tile-sub { display: none; } }
@media (min-width: 768px) {
	.fp-tile-body { left: 22px; right: 22px; bottom: 20px; gap: 6px; }
	.fp-tile-title { font-size: 22px; }
	.fp-tile-sub { font-size: 14px; }
}
.fp-tile--tall { height: 170px; }
@media (min-width: 768px) { .fp-tile--tall { height: 300px; } .fp-tile--tall .fp-tile-title { font-size: 26px; } }
@media (min-width: 1200px) { .fp-tile--tall { height: 400px; } .fp-tile--tall .fp-tile-title { font-size: 30px; } }

/* Category tiles */
.fp-cat { display: flex; flex-direction: column; gap: 10px; }
.fp-cat-media {
	display: flex; align-items: center; justify-content: center; overflow: hidden;
	height: 150px; padding: 14px; border-radius: var(--sk-radius); background: var(--sk-soft);
}
@media (min-width: 992px) { .fp-cat-media { height: 190px; padding: 16px; } }
.fp-cat-media img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; mix-blend-mode: multiply; transition: transform .3s ease; }
.fp-cat:hover .fp-cat-media img { transform: scale(1.05); }
.fp-cat-name { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 15px; font-weight: 500; }
/* Without a category photo: a plain text tile instead of an empty image box */
.fp-cat--plain {
	justify-content: center; min-height: 76px; padding: 18px 20px;
	background: var(--sk-soft); border: 1px solid var(--sk-line); border-radius: var(--sk-radius);
	transition: border-color .15s ease, background-color .15s ease;
}
.fp-cat--plain:hover { background: #fff; border-color: var(--sk-line-strong); text-decoration: none; }
.fp-cat--plain .fp-cat-name { font-size: 16px; font-weight: 700; }
.fp-cat-name .fp-arrow { color: var(--sk-accent); }
@media (min-width: 992px) { .fp-cat-name { font-size: 16px; } }

/* Campaign band
   One band for every occasion. Colors are variables on the band, so a theme is one class. */
.fp-camp {
	--camp-bg: var(--sk-ink); --camp-fg: #fff; --camp-dim: #c6cad3; --camp-pop: #e6c79a;
	display: flex; flex-direction: column; gap: 18px;
	background: var(--camp-bg); color: var(--camp-fg);
	border-radius: var(--sk-radius); padding: 22px 24px;
}
.fp-camp--brand { --camp-bg: var(--sk-accent); --camp-dim: #cfe0e5; --camp-pop: #ffd9a8; }
.fp-camp--sand { --camp-bg: var(--sk-soft); --camp-fg: var(--sk-ink); --camp-dim: var(--sk-muted); --camp-pop: var(--sk-accent); }
a.fp-camp:hover { text-decoration: none; color: var(--camp-fg); }
a.fp-camp:hover .fp-camp-title { text-decoration: underline; }
@media (min-width: 880px) {
	.fp-camp { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; padding: 24px 32px; }
}
.fp-camp-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fp-camp-kicker { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--camp-pop); }
.fp-camp-title { font-size: 22px; font-weight: 700; line-height: 1.1; letter-spacing: -.01em; }
@media (min-width: 880px) { .fp-camp-title { font-size: 26px; } }
.fp-camp-sub { font-size: 15px; color: var(--camp-dim); }

/* Countdown: fixed width and tabular digits, so it doesn't jump every second */
.fp-camp-clock { display: flex; gap: 8px; flex: 0 0 auto; }
.fp-camp-unit {
	display: flex; flex-direction: column; align-items: center; gap: 2px;
	width: 56px; padding: 8px 0; border-radius: var(--sk-radius-sm);
	background: rgba(127, 127, 127, .18);
}
.fp-camp-unit b { font-size: 22px; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.fp-camp-unit-label { font-size: 11px; color: var(--camp-dim); }

/* Product cards */
.fp-band { background: var(--sk-soft); padding: 36px 0 40px; }
@media (min-width: 992px) { .fp-band { padding: 64px 0 68px; } }
.fp-card {
	display: flex; flex-direction: column; gap: 5px; min-width: 0;
	background: #fff; border: 1px solid var(--sk-line); border-radius: var(--sk-radius);
	padding: 10px 12px 14px;
}
.fp-card:hover { border-color: var(--sk-line-strong); text-decoration: none; }
.fp-card-media { position: relative; display: block; overflow: hidden; border-radius: var(--sk-radius-sm); }
.fp-card-media img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
.fp-card-cat { font-size: 12px; margin-top: 6px; }
.fp-card-title { font-size: 14px; line-height: 1.35; }
@media (min-width: 992px) { .fp-card-title { min-height: 38px; } }
.fp-card-price { font-size: 16px; font-weight: 700; color: var(--sk-ink); display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; margin-top: 2px; }
.fp-card-price--save { color: var(--sk-red); }
.fp-card-price del { color: var(--sk-muted); font-weight: 400; font-size: 13px; }

.fp-badge {
	position: absolute; left: 8px; top: 8px; color: #fff;
	font-size: 11px; font-weight: 700; letter-spacing: .02em;
	padding: 4px 8px; border-radius: var(--sk-radius-sm);
}
.fp-badge--save { background: var(--sk-red); }
.fp-badge--free { background: var(--sk-save); }
.fp-badge--last { background: var(--sk-ink); }

/* Brands */
/* Logo files are white squares with the logo centered, so the height sets the logo size: keep vertical padding low */
.fp-brand {
	display: flex; align-items: center; justify-content: center;
	height: 70px; padding: 5px 8px; background: #fff;
	border: 1px solid var(--sk-line); border-radius: var(--sk-radius);
}
@media (min-width: 992px) { .fp-brand { height: 92px; padding: 6px 10px; } }
.fp-brand:hover { border-color: var(--sk-line-strong); }
.fp-brand img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }

/* SEO text: fully expanded, two columns on large screens
   Years of WYSIWYG content from the translations, so the rhythm is set here and the editor noise is removed.
   .sk .fp-seo, not .fp-seo: two classes beat the theme's single-class paragraph margins without !important. */
.fp-seo { border-top: 1px solid var(--sk-line); padding-top: 28px; font-size: 13.5px; line-height: 1.6; color: var(--sk-text); }
@media (min-width: 992px) { .fp-seo { column-count: 2; column-gap: 48px; padding-top: 36px; } }

/* Reset first: no inherited top margins from the theme or the browser */
.sk .fp-seo > * { margin-top: 0; }
.sk .fp-seo h1 { margin: 0 0 10px; font-size: 22px; font-weight: 700; color: var(--sk-ink); line-height: 1.2; column-span: all; }
.sk .fp-seo h2 { margin: 16px 0 4px; font-size: 16px; font-weight: 700; color: var(--sk-ink); break-after: avoid; }
.sk .fp-seo h3 { margin: 12px 0 2px; font-size: 14px; font-weight: 700; color: var(--sk-ink); break-after: avoid; }
.sk .fp-seo p { margin: 0 0 8px; }
.sk .fp-seo ul, .sk .fp-seo ol { margin: 0 0 8px; padding-left: 20px; }
.sk .fp-seo li + li { margin-top: 2px; }
.sk .fp-seo img { margin: 8px 0; border-radius: var(--sk-radius-sm); }

/* Editor noise: hide double line breaks and empty paragraphs */
.sk .fp-seo br + br { display: none; }
.sk .fp-seo p:empty { display: none; }

@media (prefers-reduced-motion: reduce) {
	.fp-tile img, .fp-cat-media img { transition: none; }
	.fp-tile:hover img, .fp-cat:hover .fp-cat-media img { transform: none; }
}
