/* Graverolaser : fiche produit et personnalisateur. */
.gl-pdp {
	--b: var(--gl-brand, #9A5823); --soft: var(--gl-soft, #F6ECE1); --ink: var(--gl-ink, #1F1B17); --muted: var(--gl-muted, #5F5850);
	--field: var(--gl-field, #D9D2C7); --line: var(--gl-line, #EDE8E1); --line2: var(--gl-line-2, #E3DDD4);
	padding-top: 20px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start;
	color: var(--ink); font-family: var(--gl-sans, 'Figtree', system-ui, sans-serif);
}
.gl-pdp *, .gl-pdp *::before { box-sizing: border-box; }
.gl-pdp fieldset { border: none; margin: 0; padding: 0; min-width: 0; }
.gl-pdp [hidden] { display: none !important; }

/* Colonne image */
.gl-pdp__media { position: sticky; top: 16px; display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 16px; }
.gl-thumbs { display: flex; flex-direction: column; gap: 10px; }
.gl-thumbs button {
	position: relative; width: 84px; height: 84px; border-radius: 6px; padding: 0 0 14px; overflow: hidden; cursor: pointer;
	display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--line2); background: #EFE9DF;
}
.gl-thumbs button.is-on { border: 2px solid var(--b); }
.gl-thumbs button img { width: 60%; height: auto; }
.gl-thumbs button span { position: absolute; left: 0; right: 0; bottom: 4px; font-size: 10px; font-weight: 700; text-align: center; color: #3E3832; }
.gl-stage-col { display: flex; flex-direction: column; gap: 12px; }
.gl-stage { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; }
.gl-stage__inner { position: absolute; inset: 0; transition: transform .6s ease; transform-origin: 50% 60%; }
.gl-stage__inner.is-3d { transform: perspective(1100px) rotateX(42deg) rotateZ(-16deg) scale(.86); }
.gl-stage__product { position: absolute; top: 50%; height: auto; max-width: none; filter: drop-shadow(0 22px 18px rgba(40, 30, 20, .28)); transition: filter .6s; }
.gl-stage__inner.is-3d .gl-stage__product { filter: drop-shadow(10px 40px 26px rgba(40, 30, 20, .4)); }
.gl-zone { position: absolute; }
.gl-zone__hint {
	position: absolute; inset: 0; border: 1.5px dashed rgba(255, 255, 255, .9); border-radius: 4px;
	display: flex; align-items: center; justify-content: center; text-align: center; padding: 10px;
}
.gl-zone__hint span { font-size: 14px; font-weight: 600; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.gl-layer { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 4px; }
.gl-layer span { line-height: 1.05; white-space: nowrap; opacity: .92; }
.gl-layer img { height: auto; max-height: 100%; object-fit: contain; }
.gl-pdfbox { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; border: 1.5px dashed rgba(255, 255, 255, .9); border-radius: 4px; font-size: 12px; font-weight: 600; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); text-align: center; padding: 6px; }
.gl-stage__photo { position: absolute; left: 50%; top: 50%; width: 70%; height: auto; transform: translate(-50%, -50%); filter: drop-shadow(0 22px 18px rgba(40, 30, 20, .28)); }
.gl-stage__photo.is-cover { inset: 0; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; transform: none; filter: none; }
.gl-stage__busy { position: absolute; left: 16px; top: 16px; background: #fff; border-radius: 6px; padding: 8px 12px; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.gl-stage__busy i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line2); border-top-color: var(--b); animation: glspin 0.8s linear infinite; }
@keyframes glspin { to { transform: rotate(360deg); } }
.gl-stage__mtools { display: none; position: absolute; right: 10px; bottom: 10px; border-radius: 6px; overflow: hidden; background: #fff; }
.gl-stage__mtools button { min-width: 52px; height: 36px; border: none; background: #fff; font-size: 13px; font-weight: 700; cursor: pointer; }
.gl-stage__mtools button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.gl-stage-tools { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.gl-seg { display: flex; border: 1.5px solid var(--field); border-radius: 6px; overflow: hidden; }
.gl-seg button { height: 44px; padding: 0 14px; border: none; background: #fff; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--ink); }
.gl-seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.gl-ink-note { font-size: 14px; color: #3E3832; display: flex; align-items: center; gap: 8px; }
.gl-ink-note i { width: 14px; height: 14px; border-radius: 3px; border: 1px solid rgba(0, 0, 0, .15); flex: none; }

/* Colonne options */
.gl-pdp__panel { display: flex; flex-direction: column; gap: 28px; padding-bottom: 20px; min-width: 0; }
.gl-pdp__head { display: flex; flex-direction: column; gap: 10px; }
.gl-pdp__cat { font-size: 14px; color: var(--muted); }
.gl-pdp__head h1 { margin: 0; font-family: var(--gl-serif, 'Young Serif', serif); font-weight: 400; font-size: 34px; line-height: 1.12; }
.gl-pdp__rating { font-size: 14px; color: #3E3832; display: flex; gap: 8px; align-items: center; text-decoration: none; }
.gl-pdp__rating span:last-child { text-decoration: underline; }
.gl-pdp__from { display: flex; align-items: baseline; gap: 10px; padding-top: 4px; }
.gl-pdp__from small { font-size: 14px; color: var(--muted); }
.gl-pdp__from strong { font-size: 30px; color: var(--b); }
.gl-pdp__from del { color: #8A8178; }
.gl-pdp__badges { display: flex; gap: 8px; flex-wrap: wrap; }
.gl-pdp__badges span { height: 28px; padding: 0 10px; border-radius: 4px; background: #F3F0EC; color: #3E3832; font-size: 13px; font-weight: 700; display: flex; align-items: center; }
.gl-pdp__badges .is-ok { background: #E6EFE6; color: #245A2E; }
.gl-pdp__badges .is-out { background: #FDF1EF; color: #8A1A12; }
.gl-pdp__badges .is-soft { background: var(--soft); color: #7A4417; }
.gl-pdp__short { font-size: 15px; line-height: 1.55; color: #3E3832; }
.gl-pdp__short p { margin: 0; }

.gl-step-box { display: flex; flex-direction: column; gap: 12px; }
.gl-step-box:first-of-type { border-top: 1px solid var(--line); padding-top: 22px; }
.gl-step-box legend, .gl-order__title { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; padding: 0; margin-bottom: 12px; }
.gl-pdp .gl-num { width: 28px; height: 28px; border-radius: 5px; background: var(--b); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; flex: none; }
.gl-choices { display: grid; gap: 10px; }
.gl-choices--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gl-choice {
	border: 1.5px solid var(--field); border-radius: 6px; background: #fff; cursor: pointer; text-decoration: none; color: var(--ink);
	min-height: 72px; padding: 10px; display: flex; gap: 10px; align-items: center; font-size: 14px;
}
.gl-choice.is-on { border: 2px solid var(--b); background: var(--soft); }
.gl-choice strong { font-size: 14px; display: block; }
.gl-choice small { font-size: 12px; color: var(--muted); display: block; }
.gl-choice__img { width: 52px; height: 52px; border-radius: 4px; display: flex; align-items: center; justify-content: center; flex: none; overflow: hidden; }
.gl-choice__img img { max-height: 46px; max-width: 46px; width: auto; height: auto; }
.gl-choice--size { flex-direction: column; justify-content: center; gap: 2px; text-align: center; }
.gl-choice--size strong { font-size: 15px; }
.gl-choice--size small { font-size: 13px; }
.gl-choice--size b { font-size: 13px; }

.gl-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gl-modes button {
	border: 1.5px solid var(--field); border-radius: 6px; background: #fff; padding: 12px 14px; text-align: left; cursor: pointer;
	display: flex; flex-direction: column; gap: 4px; color: var(--ink); min-height: 72px;
}
.gl-modes button.is-on { border: 2px solid var(--b); background: var(--soft); }
.gl-modes span { display: flex; justify-content: space-between; gap: 8px; width: 100%; }
.gl-modes strong { font-size: 15px; }
.gl-modes em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--b); white-space: nowrap; }
.gl-modes em.is-free { color: #245A2E; }
.gl-modes small { font-size: 13px; color: var(--muted); line-height: 1.4; }

.gl-editor { border: 1px solid var(--line2); border-radius: 8px; padding: 20px; display: flex; flex-direction: column; gap: 18px; background: #fff; }
.gl-editor > div[data-glc-panel] { display: flex; flex-direction: column; gap: 14px; }
.gl-help { margin: 0; font-size: 14px; line-height: 1.5; color: #3E3832; }
.gl-templates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.gl-template {
	min-height: 84px; border: 1.5px solid var(--field); border-radius: 6px; background: #F4ECE0; cursor: pointer;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #4A2A12; padding: 8px; overflow: hidden;
}
.gl-template span { white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.gl-template.is-on { border: 2px solid var(--b); }
.gl-textlink { align-self: flex-start; min-height: 44px; border: none; background: none; padding: 0; font-size: 15px; font-weight: 700; color: var(--b); text-decoration: underline; cursor: pointer; }
.gl-textlink--ink { color: #3E3832; }
.gl-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gl-fields label, .gl-area { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.gl-fields input, .gl-area textarea {
	height: 48px; border: 1.5px solid var(--field); border-radius: 6px; padding: 0 12px; font-size: 16px; font-weight: 400; background: #fff; color: var(--ink); width: 100%;
}
.gl-area textarea { height: auto; padding: 10px 12px; resize: vertical; font-family: inherit; }
.gl-fields small { font-size: 12px; font-weight: 400; color: var(--muted); }
.gl-fontpick { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; }
.gl-fonts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.gl-fonts button {
	min-height: 64px; border: 1.5px solid var(--field); border-radius: 6px; background: #fff; cursor: pointer; padding: 6px;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; overflow: hidden; color: var(--ink);
}
.gl-fonts button.is-on { border: 2px solid var(--b); background: var(--soft); }
.gl-fonts span { white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.gl-fonts small { font-size: 12px; color: var(--muted); font-weight: 400; }
.gl-drop {
	position: relative; border: 2px dashed #CFC6B8; border-radius: 8px; padding: 28px 20px; display: flex; flex-direction: column;
	align-items: center; gap: 8px; text-align: center; cursor: pointer; background: #FAF7F3;
}
.gl-drop.is-over { border-color: var(--b); background: var(--soft); }
.gl-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.gl-drop strong { font-size: 16px; }
.gl-drop span { font-size: 14px; color: #3E3832; }
.gl-drop u { font-weight: 700; color: var(--b); }
.gl-alert { border: 1.5px solid #B42318; background: #FDF1EF; border-radius: 8px; padding: 16px 18px; display: flex; gap: 12px; }
.gl-alert > b { width: 24px; height: 24px; border-radius: 50%; background: #B42318; color: #fff; font-size: 14px; display: flex; align-items: center; justify-content: center; flex: none; }
.gl-alert > div { display: flex; flex-direction: column; gap: 8px; }
.gl-alert strong { font-size: 15px; color: #8A1A12; }
.gl-alert span { font-size: 14px; line-height: 1.5; color: #3E3832; }
.gl-alert > div > div { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.gl-file { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line2); border-radius: 8px; padding: 10px 12px; }
.gl-file > span { width: 56px; height: 56px; border-radius: 4px; background: #FAF7F3; display: flex; align-items: center; justify-content: center; flex: none; }
.gl-file > span img { max-width: 48px; max-height: 48px; filter: grayscale(1); }
.gl-file > div { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.gl-file strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gl-file small { font-size: 13px; color: #245A2E; font-weight: 600; }
.gl-file button { min-height: 44px; padding: 0 12px; border: none; background: none; font-size: 14px; font-weight: 600; text-decoration: underline; cursor: pointer; }
.gl-note { margin: 0; font-size: 13px; line-height: 1.5; color: #3E3832; background: var(--soft); border-radius: 6px; padding: 10px 12px; }
.gl-note--plain { background: none; padding: 0; color: var(--muted); }

.gl-layers { display: grid; grid-template-columns: minmax(0, 1fr) 152px; gap: 20px; border-top: 1px solid var(--line); padding-top: 16px; }
.gl-layers > div { display: flex; flex-direction: column; gap: 8px; }
.gl-label { font-size: 14px; font-weight: 600; }
.gl-layer-row { display: flex; align-items: center; border: 1.5px solid var(--field); border-radius: 6px; margin-bottom: 6px; }
.gl-layer-row.is-on { border: 2px solid var(--b); background: var(--soft); }
.gl-layer-row button { min-height: 44px; border: none; background: none; text-align: left; font-size: 14px; font-weight: 600; padding: 0 10px; cursor: pointer; color: var(--ink); }
.gl-layer-row button:first-child { flex: 1; }
.gl-layer-row__tog { font-weight: 400 !important; font-size: 13px !important; text-decoration: underline; color: #3E3832 !important; }
.gl-range { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.gl-range input { accent-color: var(--b); height: 28px; }
.gl-posgrid { display: grid; grid-template-columns: repeat(3, 44px); gap: 4px; }
.gl-posgrid button { width: 44px; height: 44px; border-radius: 6px; border: 1.5px solid var(--field); background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.gl-posgrid i { width: 8px; height: 8px; border-radius: 50%; background: #CFC6B8; }
.gl-posgrid button.is-on { border: 2px solid var(--b); background: var(--soft); }
.gl-posgrid button.is-on i { background: var(--b); width: 12px; height: 12px; border-radius: 2px; }

/* Commande */
.gl-order { border-radius: 8px; background: #FAF7F3; border: 1px solid var(--line); padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.gl-order__title { margin: 0; }
.gl-recap { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; font-size: 14px; }
.gl-recap dt { color: var(--muted); }
.gl-recap dd { margin: 0; text-align: right; font-weight: 600; overflow-wrap: anywhere; }
.gl-qty { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line2); padding-top: 14px; font-size: 14px; font-weight: 600; }
.gl-stepper { display: flex; align-items: center; border: 1.5px solid var(--field); border-radius: 6px; background: #fff; }
.gl-stepper button { width: 44px; height: 44px; border: none; background: none; font-size: 20px; cursor: pointer; color: var(--ink); }
.gl-stepper input { width: 56px; height: 44px; border: none; text-align: center; font-size: 16px; font-weight: 700; background: transparent; -moz-appearance: textfield; color: var(--ink); }
.gl-stepper input::-webkit-outer-spin-button, .gl-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.gl-tiertable { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; border: 1px solid var(--line2); border-radius: 6px; overflow: hidden; background: #fff; }
.gl-tiertable button { border: none; border-left: 1px solid var(--line2); background: #fff; padding: 8px 6px; display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; color: var(--ink); }
.gl-tiertable button:first-child { border-left: none; }
.gl-tiertable button.is-on { background: var(--soft); box-shadow: inset 0 -2px 0 var(--b); }
.gl-tiertable small { font-size: 12px; color: var(--muted); }
.gl-tiertable strong { font-size: 14px; }
.gl-tiertable em { font-style: normal; font-size: 11px; color: #245A2E; font-weight: 700; }
.gl-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line2); padding-top: 14px; font-size: 16px; font-weight: 700; }
.gl-total > span:last-child { display: flex; align-items: baseline; gap: 10px; }
.gl-total del { font-size: 15px; color: #8A8178; font-weight: 400; }
.gl-total strong { font-size: 28px; color: var(--b); }
.gl-delivery { margin: 0; font-size: 14px; color: #3E3832; }
.gl-pdp .gl-add { height: 56px; width: 100%; font-size: 17px; }
.gl-pdp .gl-btn--ghost { width: 100%; }
.gl-pdp .gl-btn[disabled] { opacity: .5; cursor: not-allowed; }
.gl-order__note { margin: 0; font-size: 13px; color: var(--muted); text-align: center; }
.gl-alert--submit { margin-bottom: 4px; }

.gl-buybar { display: none; }

@media (max-width: 1100px) {
	.gl-pdp { gap: 32px; }
	.gl-pdp__media { grid-template-columns: 1fr; }
	.gl-thumbs { flex-direction: row; order: 2; }
	.gl-thumbs button { width: 64px; height: 64px; }
}

@media (max-width: 900px) {
	.gl-pdp { grid-template-columns: 1fr; padding-top: 8px; gap: 20px; }
	.gl-pdp__media { position: static; margin: 0 -16px; }
	.gl-stage { border-radius: 0; }
	.gl-stage__mtools { display: flex; }
	.gl-stage-tools .gl-seg { display: none; }
	.gl-stage-tools { padding: 0 16px; }
	.gl-ink-note { font-size: 13px; background: var(--soft); border-radius: 6px; padding: 8px 10px; }
	.gl-thumbs { padding: 0 16px; overflow-x: auto; }
	.gl-thumbs button { flex: none; }
	.gl-pdp__head h1 { font-size: 24px; line-height: 1.15; }
	.gl-pdp__from strong { font-size: 24px; }
	.gl-choices--3 { grid-template-columns: 1fr; }
	.gl-choice--size { flex-direction: row; justify-content: space-between; text-align: left; min-height: 56px; }
	.gl-modes { grid-template-columns: 1fr; }
	.gl-editor { padding: 14px; }
	.gl-fields { grid-template-columns: 1fr; }
	.gl-fonts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.gl-templates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.gl-layers { grid-template-columns: 1fr; }
	.gl-order { padding: 16px; margin-bottom: 72px; }
	.gl-buybar {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: #fff; border-top: 1px solid var(--line);
		box-shadow: 0 -8px 20px -12px rgba(31, 27, 23, .35); padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
		display: flex; align-items: center; gap: 12px; transform: translateY(110%); transition: transform .25s;
	}
	.gl-buybar.is-visible { transform: none; }
	.gl-buybar > div { display: flex; flex-direction: column; }
	.gl-buybar small { font-size: 12px; color: var(--muted); }
	.gl-buybar strong { font-size: 20px; color: var(--b); }
	.gl-buybar .gl-btn { flex: 1; height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
	.gl-stage__inner, .gl-buybar { transition: none; }
}

/* Survol : on garde nos fonds malgré les styles de boutons de Kadence */
.gl-pdp .gl-choice:hover, .gl-pdp .gl-template:hover { background: #fff; color: var(--ink); }
.gl-pdp .gl-template:hover { background: #F4ECE0; color: #4A2A12; }
.gl-pdp .gl-choice.is-on:hover { background: var(--soft); }
.gl-pdp .gl-modes button:hover, .gl-pdp .gl-fonts button:hover, .gl-pdp .gl-posgrid button:hover, .gl-pdp .gl-tiertable button:hover, .gl-pdp .gl-thumbs button:hover { color: var(--ink); }
.gl-pdp .gl-modes button.is-on, .gl-pdp .gl-fonts button.is-on, .gl-pdp .gl-posgrid button.is-on, .gl-pdp .gl-tiertable button.is-on { background: var(--soft); }
.gl-pdp .gl-modes button:not(.is-on):hover, .gl-pdp .gl-fonts button:not(.is-on):hover, .gl-pdp .gl-posgrid button:not(.is-on):hover, .gl-pdp .gl-tiertable button:not(.is-on):hover, .gl-pdp .gl-stepper button:hover { background: #FAF7F3; }
.gl-pdp .gl-textlink:hover, .gl-pdp .gl-file button:hover, .gl-pdp .gl-layer-row button:hover { background: none; color: inherit; }
.gl-pdp .gl-textlink:hover { color: var(--b); }
.gl-pdp .gl-seg button[aria-pressed="false"]:hover, .gl-pdp .gl-stage__mtools button[aria-pressed="false"]:hover { background: #FAF7F3; color: var(--ink); }
.gl-pdp .gl-seg button[aria-pressed="true"]:hover, .gl-pdp .gl-stage__mtools button[aria-pressed="true"]:hover { background: var(--ink); color: #fff; }
.gl-pdp .gl-btn, .gl-pdp .gl-btn:hover { color: #fff; }
.gl-pdp .gl-btn--ghost, .gl-pdp .gl-btn--ghost:hover { color: var(--ink) !important; }
