/**
 * Ordering Food — styles du shortcode [ordering_food].
 *
 * Tous les sélecteurs enfants sont préfixés par .ordering-food-wrap pour
 * augmenter la spécificité et écraser les styles globaux Elementor/Hello
 * sans recourir à !important.
 *
 * @package Ordering_Food
 */

/* ── Conteneur principal ──────────────────────────────────────────────────── */

.ordering-food-wrap {
	margin-right: auto;
	margin-left: auto;
	padding-top: 0;
	padding-bottom: 0;
	color: #1a1a1a;
}

/* ── Barre allergènes ─────────────────────────────────────────────────────── */

.ordering-food-wrap .ordering-food-allergen-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	padding: 16px;
	margin-bottom: 40px;
	background: #f9f9f9;
	border-radius: 8px;
}

.ordering-food-wrap .ordering-food-allergen-bar__label {
	font-weight: 600;
	white-space: nowrap;
}

.ordering-food-wrap .ordering-food-allergen-bar__list {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.ordering-food-wrap .ordering-food-allergen-bar__checkbox-label {
	display: flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	font-size: 0.9rem;
}

.ordering-food-wrap .ordering-food-allergen-checkbox {
	cursor: pointer;
}

/* ── Layout 2 colonnes ────────────────────────────────────────────────────── */

.ordering-food-wrap .ordering-food-layout {
	display: flex;
	gap: 24px;
}

/* ── Sidebar catégories ───────────────────────────────────────────────────── */

.ordering-food-wrap .ordering-food-sidebar {
	width: 260px;
	flex-shrink: 0;
	align-self: flex-start;
}

.ordering-food-wrap .ordering-food-sidebar__list {
	display: flex;
	flex-direction: column;
	gap: 0;
	padding: 0;
	margin: 0;
	list-style: none;
}

.ordering-food-wrap .ordering-food-sidebar__item {
	margin-bottom: 2px;
}

.ordering-food-wrap .ordering-food-sidebar__item + .ordering-food-sidebar__item {
	border-top: 1px solid rgba( 0, 0, 0, 0.08 );
}

.ordering-food-wrap .ordering-food-sidebar__btn {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 8px 16px;
	border: 2px solid transparent;
	border-radius: 6px;
	cursor: pointer;
	user-select: none;
	font-size: 1rem;
	color: #1a1a1a;
	background: #ffffff;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.ordering-food-wrap .ordering-food-sidebar__btn:hover {
	background-color: #f5f5f5;
	border-color: #e0e0e0;
}

.ordering-food-wrap .ordering-food-sidebar__btn:focus {
	outline: none;
}

.ordering-food-wrap .ordering-food-sidebar__btn:focus-visible {
	outline: 2px solid #C02626;
	outline-offset: 2px;
}

.ordering-food-wrap .ordering-food-sidebar__btn.is-active {
	background: inherit;
	border-left: 4px solid #C02626;
}

/* ── Fond alterné des items catégorie ─────────────────────────────────────── */

.ordering-food-wrap .ordering-food-sidebar__item:nth-child(odd) {
	background: #f5f5f5;
}

.ordering-food-wrap .ordering-food-sidebar__item:nth-child(even) {
	background: #ffffff;
}

.ordering-food-wrap .ordering-food-sidebar__btn svg {
	width: 22px !important;
	height: 22px !important;
	filter: brightness(0);
}

.ordering-food-wrap .ordering-food-sidebar__cat-img {
	width: 40px;
	height: 40px;
	object-fit: cover;
	border-radius: 50%;
	flex-shrink: 0;
}

.ordering-food-wrap .ordering-food-sidebar__cat-name {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ordering-food-wrap .ordering-food-sidebar__empty {
	padding: 12px 16px;
	color: #666;
	font-style: italic;
}

/* ── Icône de catégorie — fallback initiale colorée ──────────────────────── */

.ordering-food-wrap .ordering-food-sidebar__cat-icon,
.ordering-food-wrap .ordering-food-sidebar__cat-initial {
	background: #1A1A1A;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	min-width: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 0.85rem;
	font-weight: 700;
	flex-shrink: 0;
}

/* Actif : fond rouge sur la pastille */
.ordering-food-wrap .ordering-food-sidebar__btn.is-active .ordering-food-sidebar__cat-icon {
	background: #C02626 !important;
}
.ordering-food-wrap .ordering-food-sidebar__btn.is-active .ordering-food-sidebar__cat-initial {
	background: #C02626 !important;
}

/* ── Bouton parent : flèche et état ouvert ───────────────────────────────── */

.ordering-food-wrap .ordering-food-sidebar__arrow {
	margin-left: auto;
	font-size: 0.75rem;
	transition: transform 0.2s ease;
	flex-shrink: 0;
}

.ordering-food-wrap .ordering-food-sidebar__item.is-open > .ordering-food-sidebar__btn--parent .ordering-food-sidebar__arrow {
	/* Le texte est changé de + à − par JS */
}

/* ── Liste des catégories enfants ────────────────────────────────────────── */

.ordering-food-wrap .ordering-food-cat-children {
	display: none;
	padding: 0;
	margin: 0;
	list-style: none;
}

.ordering-food-wrap .ordering-food-sidebar__item.is-open > .ordering-food-cat-children {
	display: block;
}

.ordering-food-wrap .ordering-food-sidebar__item--child .ordering-food-sidebar__btn {
	padding-left: 20px;
	font-size: 0.9rem;
}

.ordering-food-wrap .ordering-food-sidebar__item--child .ordering-food-sidebar__cat-initial,
.ordering-food-wrap .ordering-food-sidebar__item--child .ordering-food-sidebar__cat-icon {
	width: 32px;
	height: 32px;
	min-width: 32px;
	font-size: 0.75rem;
}

/* ── Barre de tri ─────────────────────────────────────────────────────────── */

.ordering-food-wrap .ordering-food-panel-wrap {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}

.ordering-food-wrap .ordering-food-sort-bar {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 60px;
}

.ordering-food-wrap .ordering-food-sort-bar__label {
	font-weight: 600;
	white-space: nowrap;
	font-size: 0.9rem;
}

.ordering-food-wrap .ordering-food-sort-btn {
	padding: 6px 12px;
	background: #fff;
	color: #1A1A1A;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 0.85rem;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.ordering-food-wrap .ordering-food-sort-btn:hover {
	background-color: #f5f5f5;
	border-color: #bbb;
}

.ordering-food-wrap .ordering-food-sort-btn.is-active {
	background-color: #C02626;
	color: #fff;
	border-color: #C02626;
}

/* ── Panel produits ───────────────────────────────────────────────────────── */

.ordering-food-wrap .ordering-food-panel {
	min-height: 400px;
}

.ordering-food-wrap .ordering-food-panel.is-loading {
	opacity: 0.4;
	pointer-events: none;
}

.ordering-food-wrap .ordering-food-panel__placeholder,
.ordering-food-wrap .ordering-food-panel__empty {
	padding: 40px 0;
	text-align: center;
	color: #888;
}

.ordering-food-wrap .ordering-food-panel__error {
	padding: 16px;
	color: #C02626;
	background: #fdf0ef;
	border: 1px solid #f5c6c2;
	border-radius: 6px;
}

/* ── Grille produits ──────────────────────────────────────────────────────── */

.ordering-food-wrap .ordering-food-product-grid {
	display: grid;
	grid-template-columns: repeat( 4, 1fr );
	gap: 20px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.ordering-food-wrap .ordering-food-product-grid__item {
	display: flex;
}

/* ── Carte produit ────────────────────────────────────────────────────────── */

.ordering-food-wrap .ordering-food-product-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	border: 1px solid #eee;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}

.ordering-food-wrap .ordering-food-product-card__img-link {
	display: block;
	flex-shrink: 0;
}

.ordering-food-wrap .ordering-food-product-card__img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	display: block;
}

.ordering-food-wrap .ordering-food-product-card__body {
	flex: 1;
	padding: 12px;
}

.ordering-food-wrap .ordering-food-product-card__name {
	margin: 0 0 8px;
	font-size: 1rem;
	line-height: 1.3;
}

.ordering-food-wrap .ordering-food-product-card__name a {
	color: inherit;
	text-decoration: none;
}

.ordering-food-wrap .ordering-food-product-card__name a:hover {
	text-decoration: underline;
}

.ordering-food-wrap .ordering-food-product__description {
	font-size: 0.8rem;
	color: #888;
	margin: 2px 0 6px;
	line-height: 1.3;
}

.ordering-food-wrap .ordering-food-product-card__price {
	margin: 0 0 10px;
	font-weight: 700;
}

/* ── Allergènes ───────────────────────────────────────────────────────────── */

.ordering-food-wrap .ordering-food-product-card__allergens {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	padding: 0;
	margin: 0 0 10px;
	list-style: none;
	font-size: 11px;
}

.ordering-food-wrap .ordering-food-product-card__allergen {
	padding: 2px 6px;
	background: #fff3cd;
	border-radius: 3px;
	line-height: 1.4;
}

/* ── Footer carte (bouton ajout panier) ───────────────────────────────────── */

.ordering-food-wrap .ordering-food-product-card__footer {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
}

.ordering-food-wrap .ordering-food-qty {
	display: flex;
	align-items: center;
	width: 100%;
	justify-content: center;
	box-sizing: border-box;
	border: 1.5px solid #C02626;
	border-radius: 6px;
	overflow: hidden;
	background: #C02626;
}

.ordering-food-wrap .ordering-food-qty__btn {
	background: #C02626;
	border: none;
	padding: 2px 10px;
	cursor: pointer;
	font-size: 0.9rem;
	font-weight: 700;
	color: #fff;
	line-height: 1;

}

.ordering-food-wrap .ordering-food-qty__btn:hover {
	background: #C02626 !important;
	color: #fff !important;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
}

.ordering-food-wrap .ordering-food-qty__btn:focus,
.ordering-food-wrap .ordering-food-qty__btn:focus-visible {
	background: #C02626 !important;
	color: #fff !important;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
}

.ordering-food-wrap .ordering-food-qty__btn:active {
	background: #C02626 !important;
	color: #fff !important;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
}

.ordering-food-wrap .ordering-food-qty__input {
	width: 60px;
	text-align: center;
	border: none;
	background: #fff;
	color: #1A1A1A;
	font-weight: 700;
	font-size: 0.95rem;
	padding: 6px 0;
	-moz-appearance: textfield;
	-webkit-appearance: textfield;
	appearance: textfield;
}
.ordering-food-wrap .ordering-food-qty__input::-webkit-outer-spin-button,
.ordering-food-wrap .ordering-food-qty__input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.ordering-food-wrap .ordering-food-product-card__footer {
	padding: 0 12px 12px;
}

.ordering-food-wrap .ordering-food-product-card__footer .add_to_cart_button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 10px 16px;
	background-color: #C02626 !important;
	color: #fff !important;
	border: none !important;
	border-radius: 500px;
	text-align: center;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9rem;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.ordering-food-wrap .ordering-food-product-card__footer .add_to_cart_button:hover {
	background-color: #C02626 !important;
}

.ordering-food-wrap .ordering-food-product-card__footer .add_to_cart_button:focus {
	outline: none;
}

.ordering-food-wrap .ordering-food-product-card__footer .add_to_cart_button:focus-visible {
	outline: 2px solid #C02626;
	outline-offset: 2px;
}

/* ── Bouton ajout panier (div — insensible aux resets Elementor) ──────────── */

.ordering-food-wrap .ordering-food-product-card__footer .ordering-food-add-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 10px 16px;
	background: linear-gradient(to right, #1A1A1A 50%, #C02626 50%);
	background-size: 200% 100%;
	background-position: right bottom;
	color: #fff;
	border-radius: 500px;
	text-align: center;
	font-weight: 600;
	font-size: 0.9rem;
	cursor: pointer;
	user-select: none;
	transition: background-position 0.4s ease, transform 0.12s ease;
	box-sizing: border-box;
	position: relative;
	overflow: hidden;
}

.ordering-food-wrap .ordering-food-product-card__footer .ordering-food-add-btn:hover {
	background-position: left bottom;
}

.ordering-food-wrap .ordering-food-product-card__footer .ordering-food-add-btn:active {
	transform: scale(0.97);
	background-position: left bottom;
}

/* ── Icônes cart / flèche dans le bouton add-to-cart ── */

.ordering-food-add-btn__icon-wrap {
	position: relative;
	width: 18px;
	height: 18px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.ordering-food-add-btn__icon-cart,
.ordering-food-add-btn__icon-arrow {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 18px;
	height: 18px;
	transition: opacity 0.22s ease, transform 0.22s ease;
}

.ordering-food-add-btn__icon-cart {
	transform: translate(-50%, -50%);
}

.ordering-food-add-btn__icon-arrow {
	opacity: 0;
	transform: translate(-62%, -50%);
}

.ordering-food-add-btn:hover .ordering-food-add-btn__icon-cart,
.ordering-food-add-btn:active .ordering-food-add-btn__icon-cart {
	opacity: 0;
	transform: translate(-38%, -50%);
}

.ordering-food-add-btn:hover .ordering-food-add-btn__icon-arrow,
.ordering-food-add-btn:active .ordering-food-add-btn__icon-arrow {
	opacity: 1;
	transform: translate(-50%, -50%);
}

.ordering-food-wrap .ordering-food-product-card__footer .ordering-food-add-btn:focus {
	outline: none;
}

.ordering-food-wrap .ordering-food-product-card__footer .ordering-food-add-btn:focus-visible {
	outline: 2px solid #C02626;
	outline-offset: 2px;
}

.ordering-food-wrap .ordering-food-product-card__footer .ordering-food-add-btn[aria-disabled="true"] {
	opacity: 0.55;
	cursor: not-allowed;
	pointer-events: none;
}

/* ── Sélecteur de variation ───────────────────────────────────────────────── */

.ordering-food-wrap .ordering-food-variation-group {
	width: 100%;
	margin-bottom: 6px;
}

.ordering-food-wrap .ordering-food-variation-label {
	display: block;
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #777;
	margin-bottom: 3px;
}

.ordering-food-wrap .ordering-food-variation-select {
	width: 100%;
	padding: 6px 10px;
	border: 1.5px solid #C02626;
	border-radius: 6px;
	background: #fff;
	color: #1A1A1A;
	font-size: 0.85rem;
	cursor: pointer;
	box-sizing: border-box;
}

.ordering-food-wrap .ordering-food-variation-select:focus {
	outline: 2px solid #C02626;
	outline-offset: 2px;
}

/* ── Responsive ≤ 768px ───────────────────────────────────────────────────── */

@media ( max-width: 768px ) {

	.ordering-food-wrap {
		padding-top: 4rem;
		padding-bottom: 4rem;
	}
}

@media ( max-width: 767px ) {

	.ordering-food-wrap .ordering-food-layout {
		flex-direction: column;
	}

	.ordering-food-wrap .ordering-food-sidebar {
		width: 100%;
		position: static;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.ordering-food-wrap .ordering-food-sidebar__list {
		flex-direction: row;
		gap: 8px;
		padding-bottom: 4px;
	}

	.ordering-food-wrap .ordering-food-sidebar__item {
		flex-shrink: 0;
	}

	.ordering-food-wrap .ordering-food-sidebar__btn {
		white-space: nowrap;
	}

}

@media ( min-width: 600px ) and ( max-width: 899px ) {

	.ordering-food-wrap .ordering-food-product-grid {
		grid-template-columns: repeat( 2, 1fr );
	}
}

@media ( max-width: 599px ) {

	.ordering-food-wrap .ordering-food-product-grid {
		grid-template-columns: 1fr;
	}
}

@media ( min-width: 900px ) and ( max-width: 1199px ) {

	.ordering-food-wrap .ordering-food-product-grid {
		grid-template-columns: repeat( 3, 1fr );
	}
}
   ANIMATIONS HOVER — ajoutées juin 2026
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Bouton "Ajouter" — gradient slide (brun foncé → brun doré) ──────────── */

.ordering-food-wrap .ordering-food-product-card__footer .ordering-food-add-btn {
	background: linear-gradient(to right, #1A1A1A 50%, #C02626 50%) !important;
	background-size: 200% 100% !important;
	background-position: right bottom !important;
	transition: background-position 0.4s ease, transform 0.12s ease !important;
	position: relative !important;
	overflow: hidden !important;
}

.ordering-food-wrap .ordering-food-product-card__footer .ordering-food-add-btn:hover {
	background-position: left bottom !important;
	background-color: unset !important;
}

.ordering-food-wrap .ordering-food-product-card__footer .ordering-food-add-btn:active {
	transform: scale(0.97) !important;
	background-position: left bottom !important;
}

/* ── Icônes cart / flèche dans le bouton ─────────────────────────────────── */

.ordering-food-add-btn__icon-wrap {
	position: relative;
	width: 18px;
	height: 18px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.ordering-food-add-btn__icon-cart,
.ordering-food-add-btn__icon-arrow {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 18px;
	height: 18px;
	transition: opacity 0.22s ease, transform 0.22s ease;
}

.ordering-food-add-btn__icon-cart {
	transform: translate(-50%, -50%);
	opacity: 1;
}

.ordering-food-add-btn__icon-arrow {
	opacity: 0;
	transform: translate(-62%, -50%);
}

.ordering-food-add-btn:hover .ordering-food-add-btn__icon-cart,
.ordering-food-add-btn:active .ordering-food-add-btn__icon-cart {
	opacity: 0;
	transform: translate(-38%, -50%);
}

.ordering-food-add-btn:hover .ordering-food-add-btn__icon-arrow,
.ordering-food-add-btn:active .ordering-food-add-btn__icon-arrow {
	opacity: 1;
	transform: translate(-50%, -50%);
}

/* ── Hover carte produit — élévation ─────────────────────────────────────── */

.ordering-food-wrap .ordering-food-product-card {
	transition: box-shadow 0.22s ease, transform 0.22s ease;
}

.ordering-food-wrap .ordering-food-product-card:hover {
	box-shadow: 0 8px 24px rgba(66, 45, 28, 0.13);
	transform: translateY(-3px);
}

/* ── Hover image produit — pas de zoom ───────────────────────────────────── */

.ordering-food-wrap .ordering-food-product-card__img-link {
	overflow: hidden;
}

.ordering-food-wrap .ordering-food-product-card__img {
	transition: none !important;
	transform: none !important;
}

.ordering-food-wrap .ordering-food-product-card__img-link:hover .ordering-food-product-card__img {
	transform: none !important;
}

/* ── Hover sidebar — bordure gauche animée ───────────────────────────────── */

.ordering-food-wrap .ordering-food-sidebar__btn {
	transition: background-color 0.15s ease, border-color 0.15s ease,
	            border-left-width 0.15s ease !important;
}

.ordering-food-wrap .ordering-food-sidebar__btn:hover {
	border-left: 3px solid #C02626 !important;
}

/* ── Bouton tri — transition couleur ─────────────────────────────────────── */

.ordering-food-wrap .ordering-food-sort-btn {
	transition: background-color 0.18s ease, border-color 0.18s ease,
	            color 0.18s ease !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   REFONTE CARTE PRODUIT — juin 2026
   Sélecteur quantité/poids redesigné + bouton COMMANDER + popup options
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Pastilles allergènes (remplace la liste texte) ──────────────────────── */

.ordering-food-wrap .of-allergen-icons {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 4px 0 8px;
}

.ordering-food-wrap .of-allergen-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #3a7bbf;
	color: #fff;
	font-size: 0.65rem;
	font-weight: 700;
	cursor: default;
	flex-shrink: 0;
	user-select: none;
}

/* ── Lien "PLUS" dans la description ────────────────────────────────────── */

.ordering-food-wrap .of-desc-plus {
	background: none;
	border: none;
	padding: 0;
	font-weight: 700;
	font-size: 0.8rem;
	color: #C02626;
	cursor: pointer;
	text-decoration: underline;
	line-height: inherit;
}

.ordering-food-wrap .of-desc-plus:hover {
	color: #1A1A1A;
}

/* ── Ligne quantité / poids ──────────────────────────────────────────────── */

.ordering-food-wrap .of-qty-row {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 8px;
}

.ordering-food-wrap .of-qty-row__value {
	font-size: 1rem;
	font-weight: 700;
	color: #222;
	min-width: 32px;
	text-align: left;
	line-height: 1;
}

.ordering-food-wrap .of-qty-row__unit-label {
	font-size: 0.9rem;
	color: #555;
	flex: 1;
}

.ordering-food-wrap .of-qty-row__unit-select {
	flex: 1;
	min-width: 0;
	border: 1px solid #ccc;
	border-radius: 4px;
	background: #fff;
	padding: 5px 6px;
	font-size: 0.85rem;
	color: #222;
	cursor: pointer;
	font-family: inherit;
}

.ordering-food-wrap .of-qty-row__unit-select:focus {
	outline: 2px solid #C02626;
	outline-offset: 1px;
}

/* Boutons − et + */
.ordering-food-wrap .of-qty-btn {
	appearance: none !important;
	-webkit-appearance: none !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 32px !important;
	height: 32px !important;
	min-width: 32px !important;
	border-radius: 50% !important;
	border: 1.5px solid #ccc !important;
	background: #fff !important;
	color: #222 !important;
	font-size: 1.1rem !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	padding: 0 !important;
	cursor: pointer !important;
	transition: background 0.15s ease, border-color 0.15s ease !important;
	box-shadow: none !important;
	flex-shrink: 0 !important;
}

.ordering-food-wrap .of-qty-btn--minus:hover {
	background: #f5f5f5 !important;
	border-color: #999 !important;
}

/* Bouton + : cercle plein de la couleur du site */
.ordering-food-wrap .of-qty-btn--plus {
	background: #C02626 !important;
	border-color: #C02626 !important;
	color: #fff !important;
}

.ordering-food-wrap .of-qty-btn--plus:hover {
	background: #a82020 !important;
	border-color: #a82020 !important;
}

/* ── Bouton COMMANDER ────────────────────────────────────────────────────── */

.ordering-food-wrap .of-cmd-btn {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	width: 100% !important;
	padding: 11px 14px !important;
	background: #C02626 !important;
	color: #fff !important;
	border: none !important;
	border-radius: 8px !important;
	cursor: pointer !important;
	font-family: inherit !important;
	box-sizing: border-box !important;
	transition: background 0.2s ease !important;
	gap: 8px !important;
}

.ordering-food-wrap .of-cmd-btn:hover {
	background: #a82020 !important;
}

.ordering-food-wrap .of-cmd-btn:disabled {
	opacity: 0.6 !important;
	cursor: not-allowed !important;
}

.ordering-food-wrap .of-cmd-btn:focus {
	outline: none !important;
}

.ordering-food-wrap .of-cmd-btn:focus-visible {
	outline: 2px solid #1A1A1A !important;
	outline-offset: 2px !important;
}

.of-cmd-btn__text {
	font-weight: 800;
	font-size: 0.9rem;
	letter-spacing: 0.06em;
	line-height: 1;
}

.of-cmd-btn__price {
	font-weight: 700;
	font-size: 0.95rem;
	line-height: 1;
	white-space: nowrap;
}

/* ── Cacher l'ancienne liste-texte allergènes (remplacée par pastilles) ── */

.ordering-food-wrap .ordering-food-product-card__allergens {
	display: none !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   POPUP OPTIONS (overlay + modal + slides)
   ══════════════════════════════════════════════════════════════════════════════ */

/* Overlay */
.of-popup-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba( 0, 0, 0, 0.55 );
	z-index: 99998;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.of-popup-overlay.is-open {
	display: flex;
}

/* Modal */
.of-popup {
	background: #fff;
	border-radius: 16px;
	padding: 24px 24px 28px;
	width: 100%;
	max-width: 480px;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 12px 48px rgba( 0, 0, 0, 0.28 );
	position: relative;
	box-sizing: border-box;
}

/* Bouton ← RETOUR */
.of-popup__back {
	background: none !important;
	border: none !important;
	padding: 0 !important;
	font-weight: 700 !important;
	font-size: 0.85rem !important;
	letter-spacing: 0.04em !important;
	cursor: pointer !important;
	display: flex !important;
	align-items: center !important;
	gap: 6px !important;
	margin-bottom: 16px !important;
	color: #C02626 !important;
	font-family: inherit !important;
	text-transform: uppercase !important;
	text-decoration: none !important;
	box-shadow: none !important;
}

.of-popup__back:hover {
	color: #1A1A1A !important;
}

/* Dots de navigation */
.of-popup__dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-bottom: 24px;
}

.of-popup__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #ddd;
	display: inline-block;
	transition: background 0.2s ease;
}

.of-popup__dot.is-active {
	background: #C02626;
}

/* Titre du slide */
.of-popup__title {
	font-size: 1.6rem;
	font-weight: 800;
	margin: 0 0 24px;
	color: #111;
	line-height: 1.2;
}

/* ── Options (radio buttons) ─────────────────────────────────────────────── */

.of-popup__options {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-bottom: 28px;
}

.of-popup__option {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 6px 0;
	cursor: pointer;
}

/* Radio custom — cercle large */
.of-popup__option input[type="radio"] {
	appearance: none;
	-webkit-appearance: none;
	width: 40px;
	height: 40px;
	min-width: 40px;
	border: 2px solid #ccc;
	border-radius: 50%;
	flex-shrink: 0;
	cursor: pointer;
	position: relative;
	transition: border-color 0.2s ease, background 0.2s ease;
	margin: 0;
}

.of-popup__option input[type="radio"]:checked {
	border-color: #C02626;
	background: #C02626;
}

/* Checkmark blanc SVG inline */
.of-popup__option input[type="radio"]:checked::after {
	content: '';
	position: absolute;
	inset: 0;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center / 60%;
}

.of-popup__option-label {
	flex: 1;
	font-size: 1.1rem;
	font-weight: 600;
	color: #222;
}

.of-popup__option-price {
	color: #888;
	font-size: 0.9rem;
	white-space: nowrap;
	margin-left: auto;
}

/* Titre d'attribut (slide 2 quand plusieurs attributs) */
.of-popup__attr-title {
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #888;
	margin: 8px 0 6px;
}

/* ── Textarea commentaire ────────────────────────────────────────────────── */

.of-popup__textarea {
	width: 100%;
	border: 1.5px solid #ddd;
	border-radius: 8px;
	padding: 12px;
	font-size: 0.95rem;
	font-family: inherit;
	resize: vertical;
	margin-bottom: 24px;
	box-sizing: border-box;
	color: #222;
	line-height: 1.5;
}

.of-popup__textarea:focus {
	outline: none;
	border-color: #C02626;
}

/* ── Bouton d'action (ENREGISTRER / AJOUTER AU PANIER) ───────────────────── */

.of-popup__action-btn {
	display: block !important;
	width: 100% !important;
	padding: 14px 20px !important;
	background: #C02626 !important;
	color: #fff !important;
	border: none !important;
	border-radius: 500px !important;
	font-size: 1rem !important;
	font-weight: 800 !important;
	letter-spacing: 0.06em !important;
	cursor: pointer !important;
	font-family: inherit !important;
	text-align: center !important;
	transition: background 0.2s ease, transform 0.1s ease !important;
	box-shadow: none !important;
	text-decoration: none !important;
}

.of-popup__action-btn:hover {
	background: #a82020 !important;
	color: #fff !important;
}

.of-popup__action-btn:active {
	transform: scale( 0.98 ) !important;
}

/* ── Responsive popup ────────────────────────────────────────────────────── */

@media ( max-width: 480px ) {
	.of-popup {
		padding: 20px 16px 24px;
		border-radius: 12px;
	}

	.of-popup__title {
		font-size: 1.3rem;
	}

	.of-popup__option input[type="radio"] {
		width: 34px;
		height: 34px;
		min-width: 34px;
	}
}


/* ── Icônes cart / flèche dans le bouton COMMANDER ──────────────────── */

.of-cmd-btn__left {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.of-cmd-btn__icon-wrap {
	position: relative;
	width: 18px;
	height: 18px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.of-cmd-btn__icon-cart,
.of-cmd-btn__icon-arrow {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 18px;
	height: 18px;
	transition: opacity 0.22s ease, transform 0.22s ease;
}

.of-cmd-btn__icon-cart {
	transform: translate( -50%, -50% );
	opacity: 1;
}

.of-cmd-btn__icon-arrow {
	opacity: 0;
	transform: translate( -62%, -50% );
}

.of-cmd-btn:hover .of-cmd-btn__icon-cart,
.of-cmd-btn:active .of-cmd-btn__icon-cart {
	opacity: 0;
	transform: translate( -38%, -50% );
}

.of-cmd-btn:hover .of-cmd-btn__icon-arrow,
.of-cmd-btn:active .of-cmd-btn__icon-arrow {
	opacity: 1;
	transform: translate( -50%, -50% );
}

/* ── Slide poids popup ───────────────────────────────────────────────────── */

.of-popup__weight-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	margin: 24px auto 12px;
	width: fit-content;
	border: 1.5px solid #C02626;
	border-radius: 8px;
	overflow: hidden;
	background: #C02626;
}

.of-popup__weight-row .of-qty-btn {
	background: #C02626;
	border: none;
	padding: 12px 20px;
	font-size: 1.3rem;
	font-weight: 700;
	color: #fff;
	cursor: pointer;
	transition: background 0.15s ease;
	line-height: 1;
}

.of-popup__weight-row .of-qty-btn:hover {
	background: #c40020;
}

.of-popup__weight-val {
	display: inline-block;
	min-width: 80px;
	text-align: center;
	background: #fff;
	color: #1A1A1A;
	font-weight: 700;
	font-size: 1.1rem;
	padding: 12px 8px;
}

.of-popup__weight-price {
	text-align: center;
	font-weight: 700;
	font-size: 1.05rem;
	color: #C02626;
	margin: 0 0 20px;
}

/* Icône active → blanc sur fond coloré */
.ordering-food-wrap .ordering-food-sidebar__btn.is-active .ordering-food-sidebar__cat-icon svg,
.ordering-food-wrap .ordering-food-sidebar__btn.is-active .ordering-food-sidebar__cat-icon svg * { filter: brightness(0) invert(1) !important; }
.ordering-food-wrap .ordering-food-sidebar__btn.is-active .ordering-food-sidebar__cat-img { filter: brightness(0) invert(1) !important; }
.ordering-food-wrap .ordering-food-sidebar__btn.is-active .ordering-food-sidebar__cat-initial { color: #fff !important; }
