/* Product presentation. Core owns data, offers, grouping and GET browsing. */
.gsn-products,
.gsn-products *,
.gsn-product-card,
.gsn-product-card * {
	box-sizing: border-box;
}

.gsn-products {
	min-width: 0;
	margin-block: 1.5rem 2.5rem;
	color: var(--gsn-text, #141413);
}

.gsn-product-browser > .gsn-products {
	width: 100%;
	max-width: none;
	margin-inline: 0;
}

.gsn-products > h2 {
	margin: 0 0 1.125rem;
	color: var(--gsn-text, #141413);
	font-size: clamp(1.5rem, 2.4vw, 2rem);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -.025em;
}

.gsn-products .gsn-products__disclosure {
	max-width: none;
	margin: 0 0 1.125rem;
	padding: 1rem 1.125rem;
	border: 0;
	border-radius: 14px;
	background: var(--gsn-surface, #f5f5f3);
	color: var(--gsn-text, #141413);
	font-size: max(18px, 1.125rem);
	font-weight: 400;
	line-height: 1.6;
}

.gsn-products .gsn-products-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
	align-items: start;
	gap: 1rem;
	min-width: 0;
}

.gsn-products-grid > :only-child {
	width: 100%;
	max-width: 620px;
}

.gsn-product-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	width: 100%;
	height: auto;
	margin: 0;
	border: 1px solid var(--gsn-border, #e6e6e1);
	border-radius: 18px;
	background: var(--gsn-bg, #fff);
	color: var(--gsn-text, #141413);
	overflow: hidden;
}

.gsn-product-card .gsn-product-card__media {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	height: auto;
	max-height: 300px;
	margin: 0;
	padding: 20px;
	border: 0;
	background: var(--gsn-surface, #f5f5f3);
}

.gsn-product-card .gsn-product-card__media img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 260px;
	margin: 0;
	object-fit: contain;
}

.gsn-product-card .gsn-product-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: stretch;
	gap: .875rem;
	min-width: 0;
	padding: 1.25rem;
}

.gsn-product-card .gsn-product-card__body > * {
	min-width: 0;
	max-width: none;
	margin: 0;
	overflow-wrap: anywhere;
}

.gsn-product-card .gsn-product-card__type {
	align-self: flex-start;
	padding: .3125rem .75rem;
	border: 1px solid var(--gsn-border, #e6e6e1);
	border-radius: 999px;
	background: var(--gsn-bg, #fff);
	color: var(--gsn-muted, #5c5c57);
	font-size: max(16px, 1rem);
	font-weight: 500;
	line-height: 1.4;
}

.gsn-product-card .gsn-product-card__title {
	color: var(--gsn-text, #141413);
	font-family: inherit;
	font-size: max(22px, 1.375rem);
	font-weight: 600;
	line-height: 1.23;
	letter-spacing: -.022em;
}

.gsn-product-card .gsn-product-card__summary,
.gsn-product-card .gsn-product-card__note {
	padding: 0;
	border: 0;
	background: transparent;
	font-size: max(18px, 1.125rem);
	font-weight: 400;
	line-height: 1.6;
	text-wrap: pretty;
}

.gsn-product-card .gsn-product-card__summary {
	color: #282823;
}

.gsn-product-card .gsn-product-card__note {
	color: #3d3d37;
}

.gsn-product-card .gsn-product-card__specs {
	display: grid;
	gap: 1px;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: var(--gsn-border, #e6e6e1);
	font-size: max(18px, 1.125rem);
	line-height: 1.5;
	overflow: hidden;
}

.gsn-product-card__specs > div {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
	align-items: baseline;
	gap: .25rem .75rem;
	min-width: 0;
	padding: .6875rem .875rem;
	background: var(--gsn-surface, #f5f5f3);
}

.gsn-product-card__specs dt,
.gsn-product-card__specs dd {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
	font-size: inherit;
	line-height: inherit;
	text-align: left;
	overflow-wrap: anywhere;
}

.gsn-product-card__specs dt {
	color: var(--gsn-muted, #5c5c57);
	font-weight: 400;
}

.gsn-product-card__specs dd {
	color: var(--gsn-text, #141413);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.gsn-product-card .gsn-product-card__offers {
	display: flex;
	flex-direction: column;
	gap: .875rem;
	min-width: 0;
	margin-top: .375rem;
	padding: 0;
}

.gsn-product-card .gsn-product-card__offer-wrapper {
	display: flex;
	flex-direction: column;
	gap: .5rem;
	min-width: 0;
	margin: 0;
}

/* Price is inside Core's actual link; retain one focus target per shop. */
.gsn-product-card .gsn-product-card__cta,
.gsn-product-card .gsn-product-card__cta:visited {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: .3125rem;
	min-width: 0;
	min-height: 56px;
	width: 100%;
	margin: 0;
	padding: .75rem 1rem;
	border: 1px solid var(--gsn-action, #e01b15);
	border-radius: 9px;
	background: var(--gsn-action, #e01b15);
	color: #fff;
	font-family: inherit;
	font-size: max(18px, 1.125rem);
	font-weight: 600;
	line-height: 1.35;
	text-align: center;
	text-decoration: none;
	white-space: normal;
	overflow-wrap: anywhere;
	transition: background-color 140ms ease, border-color 140ms ease;
}

.gsn-product-card__cta > span {
	min-width: 0;
	max-width: 100%;
}

.gsn-product-card .gsn-product-card__price {
	color: inherit;
	font-size: max(22px, 1.375rem);
	font-weight: 700;
	line-height: 1.2;
	font-variant-numeric: tabular-nums;
	white-space: normal;
}

.gsn-product-card .gsn-product-card__cta:hover {
	border-color: var(--gsn-action-text, #c0130e);
	background: var(--gsn-action-text, #c0130e);
	color: #fff;
}

.gsn-product-card .gsn-product-card__cta:active {
	border-color: #a5100c;
	background: #a5100c;
	color: #fff;
}

/* __checked is the necessary "Slut i lager" message, not a public timestamp. */
.gsn-product-card .gsn-product-card__checked {
	display: block;
	max-width: none;
	margin: 0;
	padding: 0;
	color: #3d3d37;
	font-size: max(18px, 1.125rem);
	font-weight: 500;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

.gsn-product-card--text-only {
	border-radius: 14px;
}

.gsn-product-card--text-only .gsn-product-card__body {
	padding: 1.125rem 1.25rem;
}

.gsn-product-card--text-only .gsn-product-card__offers {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
	align-items: start;
	gap: .75rem;
}

/* A family is one model slot. Native details retains its own size cards. */
.gsn-product-family {
	display: flex;
	flex-direction: column;
	align-self: start;
	min-width: 0;
	border: 1px solid var(--gsn-border, #e6e6e1);
	border-radius: 18px;
	background: var(--gsn-bg, #fff);
}

.gsn-product-family > .gsn-product-card {
	border: 0;
	border-radius: 17px 17px 0 0;
}

.gsn-products .gsn-product-family > .gsn-product-family__variants {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-top: 1px solid var(--gsn-border, #e6e6e1);
	border-radius: 0 0 17px 17px;
	background: var(--gsn-surface, #f5f5f3);
}

.gsn-products .gsn-product-family__variants > summary {
	display: list-item;
	min-height: 56px;
	margin: 0;
	padding: 1rem;
	border: 0;
	border-radius: 0 0 17px 17px;
	background: transparent;
	color: var(--gsn-text, #141413);
	font-size: max(18px, 1.125rem);
	font-weight: 600;
	line-height: 1.45;
	list-style-position: inside;
	cursor: pointer;
	overflow-wrap: anywhere;
}

.gsn-products .gsn-product-family__variants > summary::marker {
	color: var(--gsn-action-text, #c0130e);
}

.gsn-products .gsn-product-family__variants[open] > summary {
	margin: 0;
	border-bottom: 1px solid var(--gsn-border, #e6e6e1);
	border-radius: 0;
}

.gsn-products .gsn-product-family__sizes {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: start;
	gap: 1rem;
	min-width: 0;
	margin: 0;
	padding: 1rem;
}

.gsn-product-family__sizes > .gsn-product-card {
	max-width: none;
}

.gsn-products .gsn-products__more {
	max-width: none;
	margin: 1.125rem 0 0;
	color: #3d3d37;
	font-size: max(18px, 1.125rem);
	line-height: 1.6;
}

.gsn-products .gsn-products__more a {
	color: var(--gsn-action-text, #c0130e);
	text-decoration: underline;
	text-underline-offset: .18em;
}

.gsn-products :is(a, summary):focus-visible {
	outline: 3px solid var(--gsn-focus, #0b5fd0);
	outline-offset: 3px;
	box-shadow: 0 0 0 3px #fff;
}

@media (prefers-reduced-motion: reduce) {
	.gsn-product-card .gsn-product-card__cta {
		transition: none;
	}
}

@media (forced-colors: active) {
	.gsn-product-card .gsn-product-card__cta {
		border-color: LinkText;
	}
	.gsn-products :is(a, summary):focus-visible {
		outline-color: Highlight;
	}
}
