.dpo-options {
	--dpo-accent: var(--ast-global-color-0, #2997aa);
	--dpo-line: rgba(0, 0, 0, .14);
	--dpo-media-bg: #f5f5f5;
	border: 0;
	padding: 0;
	margin: 0 0 1.5em;
	width: 100%;
	min-width: 0;
}
.dpo-title { font-weight: 600; margin-bottom: .75em; padding: 0; }
.dpo-title abbr.required { color: var(--dpo-accent); text-decoration: none; border: 0; }

.dpo-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	gap: 12px;
}

/* Carte */
.dpo-card {
	position: relative;
	display: flex;
	flex-direction: column;
	border: 1px solid var(--dpo-line);
	border-radius: 6px;
	background: #fff;
	transition: border-color .15s, box-shadow .15s;
}
.dpo-card:hover { border-color: var(--dpo-accent); }
.dpo-card.is-selected { border-color: var(--dpo-accent); box-shadow: 0 0 0 1px var(--dpo-accent); }
.dpo-card:has(input:focus-visible) { outline: 2px solid var(--dpo-accent); outline-offset: 2px; }

/* Photo cliquable (reset des styles de bouton du thème) */
.dpo-options .dpo-zoom,
.dpo-options .dpo-zoom:hover,
.dpo-options .dpo-zoom:focus {
	position: relative;
	display: block;
	margin: 8px 8px 0;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: var(--dpo-media-bg);
	box-shadow: none;
	color: #333;
	line-height: 0;
	aspect-ratio: 1;
	overflow: hidden;
	cursor: zoom-in;
	width: auto;
	min-height: 0;
}
.dpo-options .dpo-zoom:focus-visible { outline: 2px solid var(--dpo-accent); outline-offset: 2px; }
.dpo-zoom img.dpo-card-img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; }
.dpo-zoom-icon {
	position: absolute; right: 6px; bottom: 6px;
	width: 28px; height: 28px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: rgba(255, 255, 255, .92); color: #333;
}

/* Texte + case (clic = sélection) */
.dpo-card-body {
	display: flex; flex-direction: column; gap: 4px; flex: 1;
	margin: 0; padding: 8px; cursor: pointer;
}
.dpo-card-body input {
	position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none;
}
.dpo-card-label { font-size: .95em; line-height: 1.3; }
.dpo-card-price { font-size: .9em; font-weight: 600; color: var(--dpo-accent); }
.dpo-card-desc { font-size: .8em; line-height: 1.4; opacity: .75; }

.dpo-summary { margin: .75em 0 0; }
.dpo-summary p { margin: 0 0 .25em; }
.dpo-summary[hidden], .dpo-grand-total[hidden] { display: none; }
.dpo-total { font-size: .95em; }
.dpo-grand-total { font-size: 1.1em; }
.dpo-grand-total strong { color: var(--dpo-accent); }

/* Lightbox */
.dpo-lightbox {
	width: min(92vw, 720px);
	max-width: 92vw;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: #fff;
	overflow: hidden;
}
.dpo-lightbox::backdrop { background: rgba(0, 0, 0, .7); }
.dpo-lb-img { display: block; width: 100%; max-height: 75vh; object-fit: contain; background: var(--dpo-media-bg); margin: 0; }
.dpo-options .dpo-lb-close,
.dpo-options .dpo-lb-close:hover,
.dpo-options .dpo-lb-close:focus {
	position: absolute; top: 10px; right: 10px; z-index: 1;
	width: 36px; height: 36px; padding: 0; margin: 0;
	border: 0; border-radius: 50%;
	background: rgba(255, 255, 255, .92); color: #333; box-shadow: none;
	font-size: 22px; line-height: 36px; text-align: center; cursor: pointer;
}
.dpo-lb-footer {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	gap: 12px; padding: 14px 16px;
}
.dpo-lb-text { display: flex; flex-direction: column; gap: 2px; }
.dpo-lb-price { font-weight: 600; color: var(--dpo-accent); }
.dpo-lightbox:not(.is-selected) .dpo-lb-off,
.dpo-lightbox.is-selected .dpo-lb-on { display: none; }

/* Panier / commande */
img.dpo-cart-thumb { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; vertical-align: middle; margin-right: 4px; display: inline-block; }

@media (prefers-reduced-motion: reduce) { .dpo-card { transition: none; } }
