/* Toggle form livraison/emporter (mobile) */
.livraison_emporter_close {
	position: absolute;
	top: -10px;
	right: 0px;
	z-index: 90;
	background: white;
	padding: 4px;
	border-radius: 50%;
	border: 2px solid black;
	width: 40px;
	transform: translate(0, -100%);
	height: 40px;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
}

.livraison_emporter_close svg {
	width: 26px;
}

.livraison_emporter_trigger {
	position: fixed;
	bottom: 10px;
	right: 20px;
	z-index: 90;
	background: white;
	padding: 5px 14px;
	border-radius: 30px;
	border: 2px solid black;
	cursor: pointer;
	box-shadow: rgba(0, 0, 0, 0.45) 0px 3px 15px;
}

.livraison_emporter_trigger {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transition: 0.3s ease-in-out;
}

.livraison_emporter_wrapper {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: 0.3s ease-in-out;
	transform: translate(calc(100% - 95px), calc(100% + 100px)) scale(0);
}

.livraison_emporter_wrapper.form-open {
	opacity: 1 !important;
	visibility: visible !important;
	pointer-events: auto !important;
	transform: translate(0%, 0%) scale(1) !important;
}

.livraison_emporter_trigger.is-open {
	opacity: 0 !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

@media screen and (min-width:768px) {
	.livraison_emporter_close {
		display: none;
	}
}

.title-popup {
    text-align: center;
    display: flex;
    margin: -20px auto 20px;
}

/* Toggle form livraison/emporter (popup - depuis panier)*/

#popup-form-wrapper {
	position: fixed;
	top: 0;
	left: 0;
	height: 100vh;
	width: 100%;
	z-index: 99;
	background: #00000087;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 20px;
	transition: 0.3s ease-in-out;
	z-index: -1;
}

#popup-form-wrapper {
	opacity: 0 !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

#popup-form-wrapper.form-open {
	opacity: 1 !important;
	visibility: visible !important;
	pointer-events: auto !important;
	z-index: 9999;
}

#popup-form {
	width: 100%;
	max-width: 500px;
	display: flex;
	align-items: end;
	flex-direction: column;
	gap: 15px;
	padding: 30px 20px;
	background: #f5f5f5;
	border-radius: 30px;
}

#popup-form .livraison_emporter_wrapper {
	width: 100%;
	margin: auto;
}

.popup-form-close {
	background: white;
	padding: 4px;
	border-radius: 50%;
	border: 2px solid black;
	cursor: pointer;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.popup-form-close svg {
	width: 26px;
}

.popup-form-close svg path {
	fill: black;
}

/**** SHORTCODE : Select Livraison / Emporter [livraison_emporter] ****/

.livraison_emporter_wrapper {
	border: 0px solid white;
	border-radius: 0px;
	padding: 0px;
	max-width: 500px;
	width: 100%;
}

/* Dropdown */
.livraison_emporter_wrapper .adresse-field {
	position: relative
}

.livraison_emporter_wrapper .adresse_suggestions {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	z-index: 20;
	background: #fff;
	border: 1px solid #fff;
	border-radius: 12px;
	max-height: 280px;
	overflow: auto;
	margin-top: 6px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
	z-index: 99;
	transition: opacity .15s ease;
}
.adresse_suggestions[hidden] {
  opacity: 0;
  pointer-events: none;
}

.livraison_emporter_wrapper .adresse_suggestions .sugg {
	padding: 10px 12px;
	cursor: pointer
}

.livraison_emporter_wrapper .adresse_suggestions .sugg:hover,
.livraison_emporter_wrapper .adresse_suggestions .sugg.active {
	background: #f5f5f5
}

/* lignes choix */

.methodes_choices {
	display: flex;
	flex-direction: column;
}

.toggle_livraison_emporter,
.toggle_jour_heure {
	display: flex;
	gap: 8px;
	margin-bottom: 12px
}

.toggle_livraison_emporter {
	background: black;
	border-radius: 30px;
	padding: 6px;
	box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.toggle_livraison_emporter .toggle-btn {
	flex: 1;
	padding: 10px 12px;
	border: 1px solid black;
	border-radius: 999px;
	background: black;
	cursor: pointer;
	font-weight: 700;
	color: white;
}

.toggle-btn .icon-form{
	filter: invert(1);
    display: inline-flex;
    margin-right: 5px;
}
.icon-livraison {
    height: 28px;
}
.icon-emporter{
	height: 26px;
}

.toggle_livraison_emporter .toggle-btn.active {
	background: white;
	color: black;
}

.toggle_livraison_emporter .toggle-btn.active .icon-form{
	filter: invert(0);
}

.result_livraison_emporter .bloc,
.times_choices .bloc {
	display: block;
	width: 100%;
}

.result_livraison_emporter input[type="text"],
.result_livraison_emporter select,
.times_choices select {
	width: 100%;
	border: 2px solid black !important;
	border-radius: 30px;
	background: white !important;
	padding: 8px 24px;
	min-height: 50px;
	color: black;
	box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.result_livraison_emporter input[type="text"]::placeholder {
	opacity: 1 !important;
}

.times_choices {
	display: none;
	flex-direction: column;
}

.times_choices.show {
	display: flex !important;
}

.toggle_jour_heure {
	margin-top: 12px;
}

.erreur-choix {
	margin-bottom: 12px;
	font-size: 16px;
	padding: 10px 25px;
	background: white;
	border-radius: 8px;
	font-weight: 700;
	display: none;
}

.erreur-magasin {
	margin-top: 12px;
	color: #c0392b;
	font-size: 16px;
	padding: 10px 25px;
	background: white;
	border-radius: 8px;
	font-weight: 700;
	display: none;
}

.erreur-time {
	color: #c0392b;
	font-size: 16px;
	margin-bottom: 12px;
	padding: 10px 25px;
	background: white;
	border-radius: 8px;
	font-weight: 700;
	display: none;
}

#commander {
	opacity: 0.5;
	display: flex;
	cursor: not-allowed;
}

#commander.autoriser {
	opacity: 1;
	cursor: pointer;
}

#commander-btn {
	background: black;
	color: white;
	padding: 10Px 24px;
	font-family: "Geist";
	font-size: 18px;
	font-weight: 700;
	width: fit-content;
	border-radius: 30px;
	pointer-events: none;
}

#commander.autoriser #commander-btn {
	pointer-events: auto;
}

@media screen and (max-width:767px) {
	.livraison_emporter_wrapper#global-choices-form {
		position: fixed;
		left: 20px;
		bottom: 10px;
		right: 20px;
		z-index: 9;
		max-width: calc(100% - 40px) !important;
	}

	.toggle_livraison_emporter,
	.toggle_jour_heure {
		margin-bottom: 10px;
	}

	.toggle_jour_heure {
		margin-top: 10px;
	}

	.livraison_emporter_wrapper .adresse_suggestions {
		top: -10px;
		transform: translateY(-100%);
		border-radius: 12px 12px 12px 12px;
		margin-top: 0;
	}

	.erreur-magasin {
		border: 2px solid #c0392b;
	}
}



/**** CARTE : AFFICHAGE DES PRODUITS & CATEGORIES + PAGINATION, SLIDER SHOP ****/

.head-carte {
	position: relative;
	z-index: 0;
}

.head-titre {
	position: relative;
	display: flex;
	width: 100%;
	height: auto;
	min-height: 55vh;
	padding-top: 200px;
	padding-bottom: 350px;
	text-align: center;
	justify-content: center;
	background: linear-gradient(0deg, white, transparent 150px);
	margin-bottom: -250Px;
}

.banner.desktop {
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	width: 100%;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	z-index: -1;
}

.banner.desktop {
	display: flex;
}

.banner.mobile {
	display: none;
}

.carte-title {
	color: white;
	max-width: 550px;
	display: inline-flex;
	margin-bottom: 20px;
}

.carte-subtitle {
	color: black;
}

.content-carte {
	position: relative;
	z-index: 2;
	display: flex;
	gap: 40px;
	justify-content: space-between;
	width: 100%;
	padding-bottom: 100px;
}

.content-carte .col-left {
	z-index: 2;
	width: 300px;
}

.content-carte .col-right {
	width: calc(100% - 340px);
}

.carte-categories {
	display: flex;
	flex-direction: column;
	gap: 15px;
	width: 100%;
}

.carte-cat-btn,
.carte-cat-link {
	display: flex;
	gap: 10px;
	align-items: center;
	justify-content: space-between;
	padding: 5px 20px;
	border-radius: 12px;
	background: white;
	border: 2Px solid white;
	cursor: pointer;
	box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
	transition: 0.3s ease-in-out;
	min-height: 74px;
	justify-content: center;
	min-width: 200px;
}

.carte-cat-content{
	display:flex;
	flex-direction:column;
	width:100%;
}

.carte-cat-message{
	font-size:12px;
}

.carte-cat.all .label {
	width: 100%;
}

.carte-cat-btn .label,
.carte-cat-link .label {
	/*width: calc(100% - 70px);*/
	font-weight: 700 !important;
	font-size: 17px !important;
	font-family: "Geist" !important;
	line-height: normal !important;
	margin-bottom: 0 !important;
	transition: 0.3s ease-in-out;
	color: black;
}

.carte-cat-btn .icon,
.carte-cat-link .icon {
	width: 60px;
}

.carte-cat-btn .icon img,
.carte-cat-link .icon img {
	height: 60px;
	width: 60px;
	object-fit: contain;
	object-position: right;
	transition: 0.3s ease-in-out;
}

.carte-cat-btn:hover {
	border: 2Px solid black;
}

.carte-cat-btn.is-active,
.carte-cat-link.is-active {
	background: black;
	color: white;
	border: 2Px solid black;
}

.carte-cat-btn.is-active .label,
.carte-cat-link.is-active .label {
	color: white !important;
}

.carte-cat-btn.is-active .icon img,
.carte-cat-link.is-active .icon img {
	filter: invert(1);
}

.carte-cat-heading,
.carte-cat-link {
	display: none;
}

.carte-categories {
	list-style: none;
	margin: 0;
	padding: 0;
}

.carte-categories .empty {
	opacity: .7;
	padding: .5rem .25rem;
	font-style: italic;
}

#carte-categories-loading {
	display: none;
}

/**** GRILLE PRODUITS ****/

.products-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

#carte-loadmore {
	width: fit-content;
	margin: 30px auto;
	cursor: pointer;
	display: none;
}

#carte-loadmore.is-visible {
	display: flex;
}

/**** RECHERCHE ****/

#carte-products-search {
	background: white;
	border-radius: 12px;
	/*overflow: hidden;*/
	margin-bottom: 20px;
	box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
	box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}
#carte-products-search .cp-searchbox__input[type=search]{
	font-size:18px!important;
	min-height: 50px;
	border-radius: 12px!important;
	box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}
.cp-searchbox__results {
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #000 transparent;
}
.cp-searchbox__results::-webkit-scrollbar {
  width: 5px; 
}
.cp-searchbox__results::-webkit-scrollbar-track {
  background: transparent; 
}
.cp-searchbox__results::-webkit-scrollbar-thumb {
  background-color: #000;
  border-radius: 3px; 
  border: 1px solid transparent; 
}

/*
#carte-products-search .is-form-style {
	min-height: 50px;
	align-items: center;
	display: flex;
	padding: 5px 15px !important;
}

#carte-products-search .is-form-style input#is-search-input-752 {
	font-size: 20px !important;
	font-family: 'Geist';
	font-weight: 300;
	color: black !important;
}

input#is-search-input-752::placeholder {
	opacity: 1 !important;
	color: black !important;
}

#is-ajax-search-result-752 {
	padding-top: 10px;
	margin-top: -10px;
	box-shadow: rgba(100, 100, 111, 0.2) 0px 15px 20px 0px;
	border-radius: 0 0 12px 12px;
}

#is-ajax-search-result-752 .is-title a {
	font-family: 'Geist';
	font-size: 17px;
	font-weight: 400;
}

#is-ajax-search-result-752 .meta * {
	font-family: 'Geist';
	font-size: 15px;
	font-weight: 700;
}
*/

.carte-cat-heading__inner h2{
	word-break: break-word;
}

@media screen and (max-width:1100px) {
	.products-grid {
		display: grid;
		grid-template-columns: repeat(2, 1fr)!important;
	}
}

@media screen and (max-width:990px) {

	/* Carte */
	.head-titre {
		padding-top: 120px;
		padding-bottom: 250px;
	}

	.col-left {
		position: sticky;
		top: 100px;
		/* Ajusté en JS */
	}

	.content-carte {
		flex-wrap: wrap;
		gap: 0px;
	}

	.content-carte .col-left,
	.content-carte .col-right {
		width: 100%;
	}

	/* Categories */

	.carte-categories {
		flex-direction: row;
		overflow: auto;
		padding: 20px 40px 30px 40px;
		width: calc(100% + 80px) !important;
		margin-left: -40px;
		scrollbar-width: none;
		/* Firefox */
		-ms-overflow-style: none;
		/* IE/Edge */
	}

	.carte-categories::-webkit-scrollbar {
		display: none;
		/* Chrome, Safari */
	}

	.carte-cat-btn {
		display: none;
	}

	.carte-cat.all {
		display: none;
	}

	.carte-cat-link {
		display: flex;
		min-width: 200px;
		max-width: 280px;
		width: max-content;
	}
	
	.carte-cat-content{
		justify-content:center;
	}
	
	.carte-cat-link .label{
		width:100%;
	}
	
	.carte-cat-message{
        font-size: 10px;
        align-self: flex-start;
	}

	.carte-cat-heading {
		display: flex;
		grid-column: 1 / -1;
		margin-top: 30px;
	}

	/* Recherche */
	#carte-products-search {
		position: fixed;
		bottom: 0Px;
		left: 40px;
		right: 40px;
		z-index: 9;
		box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
		border-radius: 30px;
		
	}
	#carte-products-search .cp-searchbox__input[type=search]{
		border: 2px solid black;
	}
	#carte-products-search .cp-searchbox__results{
		transform: translateY(-100%);
		bottom: unset;
		top: 20Px;
		border-radius: 12px 12px 0 0 ;
		padding: 10px 0 30px 0;
	}
	/*
	#carte-products-search .is-form-style {
		min-height: 50px;
		align-items: center;
		display: flex;
		padding: 5px 15px !important;
	}

	#is-ajax-search-result-752 {
		transform: translateY(calc(-100% - 52px));
		border-radius: 12px 12px 0 0;
		right: 40px !important;
		left: 40px !important;
		width: calc(100% - 90px) !important;
		padding-top: 2px;
		margin-top: 0px;
		box-shadow: rgba(100, 100, 111, 0.2) 0px -15px 20px 0px;
	}

	#carte-products-search.results-open {
		box-shadow: rgba(100, 100, 111, 0.2) 0px 17px 19px 0px;
	}

	#bg-search-transition {
		position: fixed;
		opacity: 0;
		left: 40px;
		bottom: 50px;
		right: 40px;
		height: 50px;
		background: white;
		pointer-events: none;
	}

	#bg-search-transition.results-open {
		opacity: 1;
	}*/
}

@media screen and (max-width:767px) {

	/* Carte */
	.head-titre {
		min-height: unset;
		padding-top: 110px;
		padding-bottom: 0px;
		margin-bottom: 0;
		background: none;
	}

	.banner.desktop {
		display: none;
	}

	.banner.mobile {
		display: flex;
		position: relative;
		margin-bottom: -200px;
	}

	.banner.mobile img {
		max-height: 500px;
		min-height: 400px;
		width: 100%;
		object-fit: cover;
		object-position: top;

		/* masque dégradé vertical pour fondre img dans le fond */
		-webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 50px);
		mask-image: linear-gradient(to bottom, transparent 0%, black 50px);
		-webkit-mask-repeat: no-repeat;
		mask-repeat: no-repeat;
		-webkit-mask-size: 100% 100%;
		mask-size: 100% 100%;
	}

	.banner.mobile:after {
		content: "";
		position: absolute;
		left: 0;
		top: 0;
		height: 100%;
		width: 100%;
		background: linear-gradient(0deg, white, transparent 100px);
	}

	/* Categoris */
	.carte-categories {
		padding: 10px 20px 30px 20px;
		width: calc(100% + 40px) !important;
		margin-left: -20px;
	}

	/* Grille produits */
	.products-grid {
		grid-template-columns: repeat(2, 1fr)!important;
	}

	/* Recherche */
	#carte-products-search {
        left: 20px;
		right: 20px;
	}

	#carte-products-search .cp-searchbox__input[type=search] {
    	font-size: 18px !important;
		border-radius: 30px !important;
		min-width:unset!important;
	}
	/*
	#is-ajax-search-result-752 {
		right: 20px !important;
		left: 20px !important;
		width: calc(100% - 50px) !important;
	}

	#carte-products-search.results-open {
		box-shadow: rgba(100, 100, 111, 0.2) 0px 17px 19px 0px;
	}

	#bg-search-transition {
		left: 20px;
		right: 20px;
	}

	#carte-products-search {
		bottom: 0Px;
		left: 20px;
		right: 20px;
		background: white;
	}

	#carte-products-search .is-form-style input#is-search-input-752 {
		font-size: 18px !important;
	}*/
}

@media screen and (max-width:650px) {
	.products-grid {
		grid-template-columns: repeat(1, 1fr)!important;
	}

	#carte-loadmore {
		width: 100%;
	}
}


/**** CARD PRODUCT : AFFICHAGE DES CARD PRODUITS (content-product.php, carte, crossells, ...) ****/

.product-card {
	position: relative;
	border-radius: 14px;
	background: #FFF;
	padding: 24px;
	justify-content: space-between;
	box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;
}

.product-card__link {
	display: flex;
	flex-direction: column;
	gap: 10px;
	text-decoration: none;
	color: inherit;
}

.product-card__media {
	position: relative;
	overflow: hidden;
	border-radius: 12px;
	display: flex;
	aspect-ratio: 1 / 1;
}

.product-card__media img {
	width: 100%;
	margin: auto;
	object-fit: contain;
}

.product-card.product_cat-supplements .product-card__media img {
	width: 70%;
}

.product-card__title {
	line-height: normal !important;
	margin-bottom: 10px;
	display: inline-flex;
}

.product-card__pieces__price{
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: end;
	line-height: 1.0em !important;
}

.product-card__pieces, .product-card__infos-supp  {
	font-size: 14px;
}

.product-card__etiquettes {
	position: absolute;
	right: 45px;
	top: 20px;
	width: calc(100% - 55px);
	display: flex;
	justify-content: end;
	gap: 5px 10px;
}

.product-card__etiquettes .product-card__badge {
	border-radius: 50%;
	width: 28px;
	height: 30px;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

.tag-new {
	background-image: url('/wp-content/uploads/2025/10/product_type_New.svg');
}

.tag-fish {
	background-image: url('/wp-content/uploads/2025/10/product_type_Crevette.svg');
}

.tag-boeuf,
.tag-meat {
	background-image: url('/wp-content/uploads/2025/10/product_type_Meat.svg');
}

.tag-poulet {
	background-image: url('/wp-content/uploads/2025/10/Layer_poulet.svg');
}

.tag-porc {
	background-image: url('/wp-content/uploads/2025/10/Layer_porc.svg');
}

.tag-spicy {
	background-image: url('/wp-content/uploads/2025/10/product_type_Spicy.svg');
}

.tag-vegan {
	background-image: url('/wp-content/uploads/2025/10/product_type_Veggy.svg');
}

.tag-veggy {
	background-image: url('/wp-content/uploads/2025/10/product_type_Veggy.svg');
}

.tag-no_fish {
	background-image: url('/wp-content/uploads/2025/10/product_type_Sans_poisson.svg');
}

.product-card__wishlist {
	position: absolute;
	top: 20px;
	right: 20px;
}

.product-card__wishlist .tinv-wraper.tinv-wishlist {
	display: flex;
}

.product-card__wishlist .tinv-wishlist .tinvwl_add_to_wishlist_button:before {
	font-size: 28px !important;
}

/* Produits panier */

.product-card.product-card--compact.cp-item {
	box-shadow: none;
	padding: 18px;
}

.product-card.product-card--compact.cp-item .product-card__link {
	flex-direction: row;
	align-items: center;
	gap: 30px;
}

.product-card.product-card--compact.cp-item .product-card__media {
	width: 130Px;
	background: #C3CAC5;
}
.product-card.product-card--compact.cp-item .product-card__media a {
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-card.product-card--compact.cp-item .product-card__body {
	width: calc(100% - 280px);
}

.product-card.product-card--compact.cp-item .product-card__etiquettes {
	position: relative;
	right: unset;
	top: unset;
	justify-content: start;
	margin-bottom: 10px;
}

.product-card.product-card--compact.cp-item .product-card__title {
	font-weight: 700 !important;
}

.product-card.product-card--compact.cp-item .product-card__pieces {
	font-size: 16px !important;
	font-weight: 400;
}

.product-card.product-card--compact.cp-item .product-card__qty__price {
	margin-right: 0;
	margin-left: auto;
	max-width: 120px;
	display: flex;
	flex-direction: column;
	gap: 5px 10px;
}

.product-card__price {
	text-align: right;
	font-weight: 700;
	font-size: 16px;
}

/* conteneur général */
fieldset.cp-option-supplement {
	padding: 0;
	border: none;
}

fieldset.cp-option-supplement .cp-option__radios {
	display: flex;
	gap: 10px;
}

/* cacher les radios */
fieldset.cp-option-supplement input[type="radio"] {
	display: none;
}

/* style des "boutons" Oui/Non */
.cp-option__label {
	cursor: pointer;
	border-radius: 12px;
	padding: 10px 16px;
	background: transparent;
	border: 1px solid black;
	color: black;
	font-weight: 700;
	transition: all 0.2s ease;
	line-height: 1em;
	margin-bottom: 0;
}

.cp-option__label:has(input[type="radio"]:checked) {
	background: black;
	color: #fff;
}

@media screen and (min-width:1100px) and (max-width:1300px) {
	.product-card {
		padding: 20px;
	}
}

@media screen and (max-width:990px) {
	.product-card {
		padding: 20px;
	}

	.product-card__link {
		flex-direction: row;
		align-items: center;
		gap: 20px;
	}

	.product-card__media {
		width: calc(40% - 20px);
	}

	.product-card__body {
		width: 60%;
	}

	.product-card__etiquettes {
		position: relative;
		right: unset;
		top: unset;
		justify-content: start;
		margin-bottom: 10px;
	}
}

@media screen and (max-width:767px) {
	.product-card {
		padding: 15px;
	}
}