/* Float Harmony — Cartes cadeaux : grille catalogue + champs produit */

.fh-gc-wrap {
	--fh-accent: #4a6b6f;
	--fh-accent-2: #a9c4c0;
	box-sizing: border-box;
	margin: 20px 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.fh-gc-wrap *, .fh-gc-wrap *::before, .fh-gc-wrap *::after { box-sizing: border-box; }

.fh-gc-grid {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
.fh-gc-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.fh-gc-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fh-gc-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fh-gc-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .fh-gc-cols-3, .fh-gc-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .fh-gc-grid { grid-template-columns: 1fr; gap: 18px; } }

/* Card (is an <a>) */
.fh-gc-wrap .fh-gc-card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	background: #ffffff !important;
	border: 1px solid rgba(20, 30, 55, 0.08) !important;
	border-radius: 20px !important;
	overflow: hidden !important;
	box-shadow: 0 6px 22px rgba(20, 30, 55, 0.07);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.fh-gc-wrap .fh-gc-card:hover,
.fh-gc-wrap .fh-gc-card:focus {
	transform: translateY(-6px);
	border-color: rgba(20, 30, 55, 0.12) !important;
	box-shadow: 0 18px 40px rgba(20, 30, 55, 0.16) !important;
	outline: none;
}

/* Visual */
.fh-gc-wrap .fh-gc-visual {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 172px;
	color: #fff;
	overflow: hidden;
	background: linear-gradient(135deg, var(--fh-accent), var(--fh-accent-2));
}
.fh-gc-wrap .fh-gc-visual::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(130% 100% at 15% -10%, rgba(255,255,255,0.32), rgba(255,255,255,0) 55%),
		radial-gradient(120% 120% at 100% 115%, rgba(0,0,0,0.18), rgba(0,0,0,0) 60%);
}
.fh-gc-wrap .fh-gc-visual::after {
	content: "";
	position: absolute;
	right: -46px; bottom: -64px;
	width: 180px; height: 180px; border-radius: 50%;
	border: 26px solid rgba(255,255,255,0.12);
}
.fh-gc-wrap .fh-gc-visual-icon {
	position: relative; z-index: 1;
	display: inline-flex; align-items: center; justify-content: center;
	width: 84px; height: 84px; border-radius: 50%;
	background: rgba(255,255,255,0.16);
	border: 1px solid rgba(255,255,255,0.4);
}
.fh-gc-wrap .fh-gc-visual-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.fh-gc-wrap .fh-gc-visual.has-image::before,
.fh-gc-wrap .fh-gc-visual.has-image::after { content: none; }

/* Body */
.fh-gc-wrap .fh-gc-body {
	display: flex; flex-direction: column; gap: 10px;
	padding: 20px 22px 24px; flex: 1 1 auto;
}
.fh-gc-wrap .fh-gc-eyebrow {
	font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em;
	text-transform: uppercase; color: var(--fh-accent); margin-bottom: -2px;
}
.fh-gc-wrap .fh-gc-headline {
	display: flex; align-items: baseline; justify-content: space-between;
	gap: 8px 14px; flex-wrap: wrap;
}
.fh-gc-wrap .fh-gc-name {
	margin: 0; font-size: 1.12rem; font-weight: 700; line-height: 1.3;
	letter-spacing: -0.01em; color: #1f2733;
}
.fh-gc-wrap .fh-gc-price {
	flex: 0 0 auto; font-size: 1.02rem; font-weight: 800; white-space: nowrap;
	color: #1f2733; padding: 4px 12px;
	background: color-mix(in srgb, var(--fh-accent) 14%, #ffffff);
	border: 1px solid rgba(20,30,55,0.06); border-radius: 999px;
}
.fh-gc-wrap .fh-gc-cta {
	display: flex; align-items: center; justify-content: center; gap: 8px;
	margin-top: auto; padding: 12px 18px; border-radius: 12px;
	background: linear-gradient(135deg, var(--fh-accent), var(--fh-accent-2));
	color: #fff; font-size: 0.95rem; font-weight: 600;
	box-shadow: 0 6px 16px rgba(20,30,55,0.14);
}
.fh-gc-wrap .fh-gc-arrow { transition: transform 0.18s ease; }
.fh-gc-wrap .fh-gc-card:hover .fh-gc-arrow { transform: translateX(4px); }

.fh-gc-empty {
	padding: 24px; text-align: center; color: #5c6675;
	background: #f7f8fa; border: 1px dashed #d3d9e2; border-radius: 12px;
}

/* Product page fields (recipient + message) */
.fh-gc-fields { margin: 0 0 18px; }
.fh-gc-field { margin: 0 0 12px; }
.fh-gc-field label { display: block; font-weight: 600; margin-bottom: 4px; }
.fh-gc-field input[type="text"],
.fh-gc-field textarea {
	width: 100%; max-width: 420px; padding: 10px 12px;
	border: 1px solid #ccd4d4; border-radius: 8px; font-size: 15px;
}
