/* ══════════════════════════════════════════════════════════
   Carte produit partagée (boutique + showcase accueil)
   ══════════════════════════════════════════════════════════ */

.nut-shop-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border: 1px solid #e8eaef;
	border-radius: 12px;
	overflow: hidden;
	transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.nut-shop-card:hover {
	border-color: #d1d5de;
	box-shadow: 0 8px 30px rgba(5, 10, 94, 0.1);
	transform: translateY(-3px);
}

.nut-shop-card__media-wrap {
	display: block;
	text-decoration: none;
	flex-shrink: 0;
}

.nut-shop-card__media {
	position: relative;
	aspect-ratio: 1 / 1;
	background: #f9fafb;
	border-bottom: 1px solid #f0f1f4;
	overflow: hidden;
}

.nut-shop-card__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	padding: 1.25rem;
	box-sizing: border-box;
	transition: transform 0.35s ease;
}

.nut-shop-card:hover .nut-shop-card__img {
	transform: scale(1.04);
}

.nut-shop-card__badge {
	position: absolute;
	top: 0.65rem;
	left: 0.65rem;
	padding: 0.25rem 0.55rem;
	font-family: 'Quicksand', sans-serif;
	font-size: 0.65rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #fff;
	background: #dc2626;
	border-radius: 4px;
	line-height: 1.3;
	z-index: 2;
}

.nut-shop-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 1rem 1rem 1.1rem;
	gap: 0;
}

.nut-shop-card__category {
	font-family: 'Open Sans', sans-serif;
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: #6b7280;
	margin-bottom: 0.35rem;
}

.nut-shop-card__title {
	font-family: 'Quicksand', sans-serif;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.35;
	margin: 0 0 0.4rem;
}

.nut-shop-card__title a {
	color: #050A5E;
	text-decoration: none;
	transition: color 0.15s;
}

.nut-shop-card__title a:hover {
	color: #39B54A;
}

.nut-shop-card__excerpt {
	font-family: 'Open Sans', sans-serif;
	font-size: 0.78rem;
	line-height: 1.5;
	color: #6b7280;
	margin: 0 0 0.65rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	flex: 1;
}

.nut-shop-card__price-row {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-bottom: 0.35rem;
}

.nut-shop-card__price {
	font-family: 'Quicksand', sans-serif;
	font-size: 1.05rem;
	font-weight: 700;
	color: #050A5E;
	line-height: 1.2;
}

.nut-shop-card__price--sale {
	color: #050A5E;
	font-size: 1.1rem;
}

.nut-shop-card__price--was {
	font-size: 0.82rem;
	font-weight: 500;
	color: #9ca3af;
	text-decoration: line-through;
}

.nut-shop-card__stock {
	font-family: 'Open Sans', sans-serif;
	font-size: 0.72rem;
	margin: 0 0 0.85rem;
	display: flex;
	align-items: center;
	gap: 0.35rem;
}

.nut-shop-card__stock--in {
	color: #16a34a;
}

.nut-shop-card__stock--in::before {
	content: '';
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #16a34a;
	flex-shrink: 0;
}

.nut-shop-card__stock--out {
	color: #dc2626;
}

.nut-shop-card__stock--out::before {
	content: '';
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #dc2626;
	flex-shrink: 0;
}

.nut-shop-card__btn {
	display: block;
	width: 100%;
	margin-top: auto;
	padding: 0.7rem 1rem;
	font-family: 'Quicksand', sans-serif;
	font-size: 0.82rem;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	color: #fff;
	background: #39B54A;
	border-radius: 8px;
	border: none;
	cursor: pointer;
	transition: background 0.2s, transform 0.15s;
	box-sizing: border-box;
}

.nut-shop-card__btn:hover {
	background: #050A5E;
	color: #fff;
	transform: translateY(-1px);
}

/* Mode sombre */
body.nut-dark .nut-shop-card {
	background: rgba(255, 255, 255, 0.04);
	border-color: rgba(255, 255, 255, 0.1);
}

body.nut-dark .nut-shop-card:hover {
	border-color: rgba(57, 181, 74, 0.45);
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

body.nut-dark .nut-shop-card__media {
	background: rgba(255, 255, 255, 0.03);
	border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.nut-dark .nut-shop-card__category,
body.nut-dark .nut-shop-card__excerpt {
	color: rgba(255, 255, 255, 0.6);
}

body.nut-dark .nut-shop-card__title a,
body.nut-dark .nut-shop-card__price,
body.nut-dark .nut-shop-card__price--sale {
	color: #fff;
}

	body.nut-dark .nut-shop-card__price--was {
	color: rgba(255, 255, 255, 0.4);
}

body.nut-dark .nut-shop-card__stock--in {
	color: #4ade80;
}

body.nut-dark .nut-shop-card__stock--in::before {
	background: #4ade80;
}

@media (max-width: 1023px) {
	.nut-shop-card__btn {
		min-height: 2.75rem;
		padding: 0.8rem 1rem;
		font-size: 0.88rem;
	}

	.nut-shop-card__body {
		padding: 0.9rem 0.9rem 1rem;
	}

	.nut-shop-card__img {
		padding: 1rem;
	}
}

@media (max-width: 540px) {
	.nut-shop-card:hover {
		transform: none;
	}

	.nut-shop-card__title {
		font-size: 0.92rem;
	}
}
