/* Produktkorten — komponentkortet (startsidan) och Woo-loopens li-variant
   (arkiv, sök, liknande). En kortkälla, en stilfil. */

/* Produktkort */
.nws-card {
	border: 1px solid var(--nws-grey-line);
	border-radius: var(--nws-radius-l);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	background: var(--nws-white);
}
.nws-card__media {
	position: relative;
	/* height: 19rem; */
	background: var(--nws-white);
	display: flex;
	align-items: center;
	justify-content: center;
}
.nws-card__img img { max-height: 17rem; width: auto; object-fit: contain; mix-blend-mode: multiply; }

.nws-card__badge {
	position: absolute;
	z-index: 1;
	top: 1.4rem;
	left: 1.4rem;
	font-size: 1.3rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1;
	background: var(--nws-white);
	border: 1px solid var(--nws-grey-line);
	color: var(--nws-black);
	padding: 0.7rem 1rem;
	border-radius: var(--nws-radius-s);
}
.nws-card__badge:empty { display: none; }
.nws-card__badge[data-skick="Som ny"] {
	background: var(--nws-black);
	border-color: var(--nws-black);
	color: var(--nws-green);
}
.nws-card__badge[data-skick="Fynd"] {
	background: var(--nws-red);
	border-color: var(--nws-red);
	color: var(--nws-white);
}
.nws-card__body {
	padding: 2rem;
	display: flex;
	flex-direction: column;
	gap: 1.2rem;
	flex: 1;
}
.nws-card__title { display: block; font-size: 2rem; font-weight: 600; line-height: 1.25; }
.nws-card__title, .nws-card__title a { color: var(--nws-black); }
.nws-card__title:hover, .nws-card__title a:hover { color: var(--nws-black); }
.nws-card__specs { font-size: 1.5rem; line-height: 1.45; color: var(--nws-grey); }
.nws-card__assurance { font-size: 1.4rem; font-weight: 500; color: var(--nws-black); line-height: 1; }
.nws-card__foot {
	margin-top: auto;
	padding-top: 1.4rem;
	display: flex;
	flex-direction: row;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
}
.nws-card__price-label { font-size: 1.3rem; color: var(--nws-grey); margin-bottom: 0.5rem; line-height: 1; }
.nws-card__price { line-height: 1; }
.nws-card__price .nws-price-from {
	display: block;
	font-size: 1.3rem;
	font-weight: 400;
	color: var(--nws-grey);
	margin-bottom: 0.5rem;
}
.nws-card__price .woocommerce-Price-amount {
	font-family: field-gothic-compact, sans-serif;
	font-size: 3rem;
	font-weight: 600;
	color: var(--nws-black);
	white-space: nowrap;
}
.nws-card__price del { font-size: 1.4rem; color: var(--nws-grey); font-weight: 400; margin-right: 0.6rem; }
.nws-card__price ins { text-decoration: none; }

/* Liknande produkter — Woo-loopens kort mappas mot samma kortstil som
   startsidans komponent. */


li.nws-card { margin: 0; height: auto; }
li.nws-card > a,
li.nws-card .nws-card__hooks > a { display: flex; flex-direction: column; height: 100%; flex: 1; color: inherit; }

/* Lika höga kort per rad: gridbarnen ska sträckas till radhöjden (Woo sätter
   align-items på ul.products) — foten ligger sedan i botten via margin-top:auto. */
.nws-archive__grid ul.products,
.nws-pdp-related ul.products,
.nws-products__grid { align-items: stretch; }
.nws-products__grid > * { height: auto; }
.nws-products__grid .nws-card { height: 100%; }
li.nws-card .nws-card__media {
	position: relative;
	background: var(--nws-grey-surface);
	height: 19rem;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.6rem;
}
li.nws-card .nws-card__media img {
	max-height: 15.8rem;
	width: auto;
	max-width: 100%;
	object-fit: contain;
	mix-blend-mode: multiply;
}
li.nws-card .woocommerce-loop-product__title {
	font-family: inherit;
	font-size: 2rem;
	font-weight: 600;
	line-height: 1.25;
	color: var(--nws-black);
	margin: 0;
}
li.nws-card .nws-card__spec { font-size: 1.5rem; line-height: 1.45; color: var(--nws-grey); margin: 0; }
li.nws-card .nws-card__grades { display: flex; flex-wrap: wrap; gap: 0.6rem; }
li.nws-card .nws-card__grade {
	font-size: 1.2rem;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.04em;
	border: 1px solid var(--nws-grey-line);
	color: var(--nws-grey);
	padding: 0.5rem 0.8rem;
	border-radius: var(--nws-radius-s);
}
li.nws-card .nws-card__grade.is-available { color: var(--nws-black); border-color: var(--nws-grey); }
li.nws-card .price { margin-top: auto; padding-top: 1.4rem; line-height: 1; }
li.nws-card .price .nws-price-from { font-size: 1.3rem; font-weight: 400; color: var(--nws-grey); display: block; margin-bottom: 0.5rem; }
li.nws-card .price .woocommerce-Price-amount {
	font-family: field-gothic-compact, sans-serif;
	font-size: 3rem;
	font-weight: 600;
	color: var(--nws-black);
	letter-spacing: -0.01em;
	white-space: nowrap;
}
li.nws-card .price .nws-price-was { font-size: 1.4rem; color: var(--nws-grey); font-weight: 400; margin-left: 0.6rem; }
li.nws-card .price .nws-price-was .woocommerce-Price-amount { font-family: field-gothic, sans-serif; font-size: 1.4rem; font-weight: 400; color: var(--nws-grey); }

/* Kortens CTA — fotknappen delar rad med priset (absolut, kortet är länken) */
li.nws-card { position: relative; }
li.nws-card .nws-card__cta {
	position: absolute;
	right: 1.8rem;
	bottom: 1.8rem;
	background: var(--nws-green);
	color: var(--nws-black);
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1;
	padding: 1.3rem 1.6rem;
	border-radius: var(--nws-radius-s);
}
li.nws-card:hover .nws-card__cta { background: var(--nws-green-hover-bg); color: var(--nws-green-hover-fg); }
li.nws-card .price { padding-right: 12rem; }
