/* GRIPLOC Core — cartes d'offres et couleurs. Utilise les variables du thème GRIPLOC si présent. */
.glc-has-packs table.variations,
.glc-has-packs .woocommerce-variation-price { display: none !important; }
/* Les cartes affichent déjà les prix : la fourchette « 29,90 € – 74,90 € » ferait doublon. */
.summary:has(.glc-packs) > .price { display: none; }

.glc-packs, .glc-colors { border: 0; margin: 0 0 22px; padding: 0; min-width: 0; }
.glc-legend { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gl-fg-2, #5a5a52); margin-bottom: 12px; padding: 0; }

.glc-packs__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 8px; }
.glc-pack { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 18px 16px 16px; cursor: pointer; background: var(--gl-bg, #f5f5f0); border: 1.5px solid var(--gl-border, rgba(0, 0, 0, 0.12)); border-radius: var(--gl-radius, 0); transition: border-color 0.15s, background 0.15s; min-width: 0; }
.glc-pack:hover { border-color: var(--gl-fg-2, #5a5a52); }
.glc-pack input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.glc-pack:has(input:checked) { border-color: var(--gl-fg, #0c0c0a); background: var(--gl-surface, #fff); box-shadow: inset 0 0 0 1px var(--gl-fg, #0c0c0a); }
.glc-pack:has(input:checked)::after { content: "✓"; position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; border-radius: 50%; background: var(--gl-fg, #0c0c0a); color: var(--gl-bg, #fff); font-size: 0.68rem; display: flex; align-items: center; justify-content: center; }
.glc-pack:has(input:focus-visible) { outline: 2px solid var(--gl-accent, #e8a020); outline-offset: 2px; }
.glc-pack.is-out { opacity: 0.45; cursor: not-allowed; }
.glc-pack__badge { align-self: flex-start; background: var(--gl-accent, #e8a020); color: var(--gl-on-accent, #0c0c0a); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 8px; margin-bottom: 4px; }
.glc-pack__name { font-family: var(--gl-font-display, inherit); font-weight: 700; font-size: 1.05rem; padding-right: 22px; }
.glc-pack__price { font-family: var(--gl-font-display, inherit); font-weight: 800; font-size: 1.45rem; letter-spacing: -0.02em; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.glc-pack__price del { font-family: var(--gl-font-body, inherit); font-weight: 400; font-size: 0.8rem; color: var(--gl-fg-3, #8a8a80); }
.glc-pack__unit { font-size: 0.76rem; color: var(--gl-fg-2, #5a5a52); }
.glc-pack__saving { font-size: 0.74rem; font-weight: 700; color: var(--gl-success, #16a34a); }

.glc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding-block: 8px; border-bottom: 1px solid var(--gl-border, rgba(0, 0, 0, 0.1)); }
.glc-row[hidden] { display: none; }
.glc-row:last-of-type { border-bottom: 0; }
.glc-row__label { font-size: 0.8rem; font-weight: 700; color: var(--gl-fg-2, #5a5a52); min-width: 84px; }
.glc-swatches { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.glc-sw { position: relative; width: 34px; height: 34px; border-radius: 50%; background: var(--glc-sw); box-shadow: inset 0 0 0 1px rgba(128, 128, 128, 0.5); cursor: pointer; transition: transform 0.12s; }
.glc-sw:hover { transform: scale(1.08); }
.glc-sw input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.glc-sw:has(input:checked) { outline: 2.5px solid var(--gl-accent, #e8a020); outline-offset: 2px; }
.glc-sw:has(input:focus-visible) { outline: 2.5px solid var(--gl-fg, #0c0c0a); outline-offset: 2px; }
.glc-row__chosen { font-size: 0.78rem; font-weight: 600; min-width: 70px; text-align: right; }
.glc-colors .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }

@media (max-width: 600px) {
	.glc-packs__grid { grid-template-columns: 1fr; gap: 6px; }
	.glc-pack { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "badge badge" "name price" "unit saving"; align-items: center; gap: 2px 10px; padding: 12px 14px; }
	.glc-pack__badge { grid-area: badge; margin-bottom: 2px; }
	.glc-pack__name { grid-area: name; padding-right: 0; font-size: 1rem; }
	.glc-pack__price { grid-area: price; justify-content: flex-end; font-size: 1.25rem; }
	.glc-pack__unit { grid-area: unit; }
	.glc-pack__saving { grid-area: saving; text-align: right; }
	.glc-pack:has(input:checked)::after { display: none; }
}
@media (max-width: 480px) {
	.glc-row__label { min-width: 0; flex: 1 1 100%; }
	.glc-row__chosen { text-align: left; }
}
