/* ===============================
   SEARCH – FADE + SKELETON
================================ */

/* État loading */
#search-root.search-loading #filters-root,
#search-root.search-loading #products-root,
#search-root.search-loading #pagination-root {
    opacity: 0;
    pointer-events: none;
}

/* État prêt */
#search-root:not(.search-loading) #filters-root,
#search-root:not(.search-loading) #products-root,
#search-root:not(.search-loading) #pagination-root {
    opacity: 1;
    pointer-events: auto;
}

/* transition douce */
#filters-root,
#products-root,
#pagination-root {
    transition: opacity .25s ease;
}



/* ===============================
   SKELETON VISIBILITÉ
================================ */

#search-skeleton {
    display: none;
}

#search-root.search-loading #search-skeleton {
    display: block;
}

/* =====================================================
   SKELETON STRUCTURE
===================================================== */

#search-skeleton {
	padding: 16px 0;
}

.skeleton-filters {
	display: flex;
	gap: 8px;
	margin-bottom: 20px;
}

.skeleton-filters span {
	width: 110px;
	height: 36px;
	display: inline-block;
	border-radius: 20px;
}

.skeleton-products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
}

.skeleton-card {
	height: 320px;
	border-radius: 12px;
}


/* =====================================================
   SKELETON SHIMMER
===================================================== */

@keyframes skeleton {
	0%   { background-position: -200px 0; }
	100% { background-position: calc(200px + 100%) 0; }
}

.skeleton-card,
.skeleton-filters span {
	background: linear-gradient(
		90deg,
		#eeeeee 25%,
		#f5f5f5 37%,
		#eeeeee 63%
	);
	background-size: 400px 100%;
	animation: skeleton 1.4s ease infinite;
}

/***** Filters *****/
.shops_filters_form {
	position: relative;
}

.shops_filters_label {
	font-weight: 700;
	font-size: .75rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #222;
}


.shops_filters_topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.shops_filters_dropdown .dropdown-toggle {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	border-radius: 999px;
	font-size: .8rem;
	white-space: nowrap;
}

.shops_filters_pill[data-context] {
	display: none;
}
.shops_filters_pill.is-hidden {
	display: none !important;
}

.shops_filters_badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--bg-light);
	color: #000;
	font-size: .65rem;
	font-weight: 600;
	line-height: 1;
	transition: transform .25s ease;
}

.shops_filters_badge.animate {
	transform: scale(1.25);
}

.shops_filters_menu {
	min-width: 240px;
	border-radius: 14px;
	box-shadow: 0 10px 30px rgba(0,0,0,.08);
	border: none;
}

.shops_filters_menu label {
	cursor: pointer;
	user-select: none;
}

.shops_filters_sidebar {
	padding-right: 1rem;
}

.shops_filters_section {
	margin-bottom: 1.5rem;
}

.shops_filters_title {
	font-size: .85rem;
	font-weight: 700;
	margin-bottom: .5rem;
}

.shops_filters_row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .5rem;
	font-size: .8rem;
	padding: .35rem 0;
	cursor: pointer;
}

.shops_filters_row input {
	margin-right: .4rem;
}

.shops_filters_row.is-disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.shops_filters_row.is-disabled input {
	cursor: not-allowed;
}


.shops_filters_count {
	font-size: .7rem;
	color: #999;
}

.shops_filters_select {
	font-size: .8rem;
	border-radius: 10px;
}
.shops_filters_dropdown.active > button {
	background-color: var(--bg-light);
	/*color: var(--color-primary);*/
}
.shops_filters_dropdown.active > button:hover {
	background-color: var(--bg-light);
	color:#000;
	/*color: var(--color-primary);*/
}
.shops_filters_images {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
	gap: .5rem;
}
.shops_filters_active:empty {
	display: none !important;
}

.shops_filters_image {
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	padding: .25rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: border-color .2s ease, transform .2s ease;
}

.shops_filters_image img {
	max-width: 100%;
	max-height: 32px;
	display: block;
}

.shops_filters_image input {
	display: none;
}

.shops_filters_image.is-active {
	border-color: #000;
	transform: scale(1.05);
}


.shops_filters_active {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
}

.shops_filters_pill {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	padding: .35rem .7rem;
	border-radius: 999px;
	background: var(--bg-light, #fdeee9);
	border: none;
	cursor: pointer;
	font-size: .75rem;
	white-space: nowrap;
}

.shops_filters_pill span {
	font-size: .9rem;
	line-height: 1;
}

.shops_filters_clear {
	background: none;
	border: none;
	font-size: .75rem;
	color: #888;
	cursor: pointer;
	text-decoration: underline;
}


.shops_filters_accordion {
	border-bottom: 1px solid #eee;
	padding: .5rem 0;
}

.shops_filters_accordion summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
	font-weight: 600;
	font-size: .85rem;
	list-style: none;
}

.shops_filters_accordion summary::-webkit-details-marker {
	display: none;
}


/*-----------------------olivier--------------------------*/

.shops-cart-products {
    height: calc(100vh - 319px);
    overflow-y: scroll;
}
.shops-cross-sell__list{
    height: calc(100vh - 319px);
    overflow-y: scroll;
}

/* .shops-checkout-wrapper .floating-label input, .shops-checkout-wrapper .floating-label select {
    height: 40px;

} */

.form-floating>.form-control, .form-floating>.form-control-plaintext, .form-floating>.form-select {
    height: calc(3.5rem + calc(var(--bs-border-width) * 2));
    min-height: calc(2.5rem + calc(var(--bs-border-width) * 2));
    line-height: 1.25;
}

.form-floating>.form-control-plaintext~label, .form-floating>.form-control:focus~label, .form-floating>.form-control:not(:placeholder-shown)~label, .form-floating>.form-select~label {
    color: rgba(var(--bs-body-color-rgb), .65);
    transform: scale(.85) translateY(-1.5rem) translateX(.15rem);
}

/* .form-floating>.form-control-plaintext:focus, .form-floating>.form-control-plaintext:not(:placeholder-shown), .form-floating>.form-control:focus, .form-floating>.form-control:not(:placeholder-shown) {
border-top-right-radius:0;
} */

/* .form-floating>.form-control, .form-floating>.form-control-plaintext {
    padding: 0rem .75rem;
} */

.form-floating>.form-control-plaintext:focus, .form-floating>.form-control-plaintext:not(:placeholder-shown), .form-floating>.form-control:focus, .form-floating>.form-control:not(:placeholder-shown) {
    padding-top: 0;
    padding-bottom: 0;
} 

.form-floating>.form-select {
    padding-top: 0; 
     padding-bottom: 0;
     color:var(--form-color);
}

.form-floating>label{
  padding:10px .75rem;
}

.form-floating > .form-control:-webkit-autofill,
.form-floating > .form-control:-webkit-autofill:hover,
.form-floating > .form-control:-webkit-autofill:focus,
.form-floating > .form-control-plaintext:-webkit-autofill {
	-webkit-text-fill-color: var(--form-color); 
	box-shadow: 0 0 0 1000px #fff inset;
	transition: background-color 9999s ease-in-out 0s;
}
.floating-phone .form-control:-webkit-autofill,
.floating-phone .form-control:-webkit-autofill:hover,
.floating-phone .form-control:-webkit-autofill:focus,
.floating-phone .form-control-plaintext:-webkit-autofill {
	-webkit-text-fill-color: var(--form-color); 
	box-shadow: 0 0 0 1000px #fff inset;
	transition: background-color 9999s ease-in-out 0s;
}

/*-----------------------phone css--------------------------*/
.floating-phone {
  position: relative;
}

.floating-phone label {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  transition: 0.2s ease;
  pointer-events: none;
  color: #777;
}

.floating-phone.has-value label,
.floating-phone input:focus + label {
  top: 0px;
    background: white;
}

@media (max-width:768px){
  .shops-cart-products {
      height: calc(100vh - 510px);
  }

}


/*-------------------------------------------------*/

@media (max-width: 991px) {

	.shops_filters_topbar {
		flex-wrap: wrap;
	}

	.shops_filters_dropdown .dropdown-toggle {
		font-size: .75rem;
	}

  #shops-cartOffcanvas .shops-cart-main .shops-cart {
    height: calc(100% + 100px) !important;
}

}

@media (max-width: 575px) {

	.shops_filters_pill {
		font-size: .7rem;
		padding: .3rem .6rem;
	}

	.shops_filters_image img {
		max-height: 28px;
	}

}
.shops_filters_dropdown .dropdown-toggle {
	font-size: .8rem;
	padding: .45rem .85rem;
}

.shops_filters_dropdown .dropdown-menu {
	max-height: 280px;
	overflow-y: auto;
}

.shops_filters_dropdown .shops_filters_row {
	padding: .35rem .25rem;
}

.shops_filters_dropdown .shops_filters_row:hover {
	background: rgba(0,0,0,.03);
	border-radius: 6px;
}

/* Empêche Bootstrap de fermer */
.shops_filters_dropdown .dropdown-menu {
	pointer-events: auto;
}

/***** Cart *****/
.shops-cart-multicart-list .dropdown-item.active {
	background-color:var(--bg-light);
	color:#000;
}

.shops-cart-item {
  border-bottom: 1px solid #eee;
  transition: opacity .25s ease, background .25s ease;
}

.shops-cart-item-options {
  font-size: .8rem;
  color: #6c757d;
}
.shops-cart-switch {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.cart-switch-item {
  padding: 6px 10px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
}

.cart-switch-item.is-active {
  background: #000;
  color: #fff;
}

.shops-cart-item-image {
  position: relative;
}

.shops-cart-item-image img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: .375rem;
  background: #f8f9fa;
}

.shops-cart-item-qty-badge {
  position: absolute;
  top: -.375rem;
  right: -.375rem;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 .375rem;
  font-size: .75rem;
  font-weight: 600;
  border-radius: 50rem;
  background: #000;
  color: #fff;
  pointer-events: none;
}
.shops-cart-item {
  border-bottom: 1px solid #eee;
}

.shops-cart-item-title {
  font-size: 0.8rem;
  line-height: 1.3;
}

.shops-cart-item-options {
  font-size: .8rem;
  color: #6c757d;
}

.shops-cart-item-price {
  font-size: 1rem;
  white-space: nowrap;
}
.shops-cart-options {
  padding-left: 1rem;
}

.shops-cart-qty button {
  width: 28px;
  height: 28px;
}

.shops-cart-qty input {
  width: 70px;
  text-align: center;
}


.shops-cart-option button {
  line-height: 1;
}
.shops-cart-cross-sell-mobile-list::-webkit-scrollbar {
  display: none;
}

.shops-cart-cross-sell-mobile-list {
  scroll-snap-type: x mandatory;
}

.shops-cross-sell-mobile-item {
  scroll-snap-align: start;
}
/* DESKTOP – scroll cross-sell */
#shops-cartOffcanvas .shops-cart-cross-sell {
  height: 100%;
  overflow-y: auto;
}
#shops-cartOffcanvas .shops-cart-layout {
  overflow: hidden;
}
#shops-cartOffcanvas .shops-cart-cross-sell {
  padding-bottom: 1rem;
}

.shops-cart-item.is-locked {
  opacity: .6;
  pointer-events: none;
  position: relative;
}

.shops-cart-item.is-locked::after {
  content: "";
  position: absolute;
  right: .75rem;
  top: 50%;
  width: 1rem;
  height: 1rem;
  margin-top: -.5rem;
  border: 2px solid #dee2e6;
  border-top-color: #000;
  border-radius: 50%;
  animation: cart-spin .8s linear infinite;
}

@keyframes cart-spin {
  to { transform: rotate(360deg); }
}

#shops-cartOffcanvas.offcanvas-end {
  width: 700px!important;
  max-width: 95vw;
}
#shops-cartOffcanvas .offcanvas-header {
  background-color:var(--bg-light);
}
#shops-cartOffcanvas .offcanvas-body {
  height: calc(100vh - 140px);
  overflow: hidden;
}
#shops-cartOffcanvas .shops-cart-shippings-status{    border-bottom: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important;}

/* DESKTOP – scroll PRODUITS */
#shops-cartOffcanvas .shops-cart-main {
  height: 100%;
  overflow-y: auto;
}

#shops-cartOffcanvas .shops-cart-main .shops-cart {
  height: auto;
  overflow: visible;
}

.offcanvas .shops-cart,
.page-cart .shops-cart {
  opacity: 0;
}

.offcanvas.show .shops-cart,
.page-cart .shops-cart.is-visible {
  opacity: 1;
}
.shops-cart-layout {
  display: grid;
  grid-template-columns: 160px 1fr;
  transition: grid-template-columns .2s ease;
}
.shops-cart-layout.no-cross-sell {
  grid-template-columns: 1fr!important;
}


.shops-cart-layout.with-cross-sell {
  grid-template-columns: 200px 1fr;
}
.shops-cart.is-loading {
  opacity: 1 !important;
}

.shops-cart-summary {text-align:right}

.shops-skeleton-line {
  height: .875rem;
  border-radius: .5rem;
  background: linear-gradient(
    90deg,
    #eee 25%,
    #f5f5f5 37%,
    #eee 63%
  );
  background-size: 400% 100%;
  animation: skeleton-shimmer 1.3s ease infinite;
}

@keyframes skeleton-shimmer {
  from { background-position: 100% 0; }
  to   { background-position: 0 0; }
}

@media (max-width: 768px) {

  #shops-cartOffcanvas.offcanvas-end {
    width: 100vw;
  }

  #shops-cartOffcanvas .shops-cart-layout {
    grid-template-columns: 1fr !important;
  }

  #shops-cartOffcanvas .shops-cart-cross-sell {
    display: none !important; 
  }
  .shops-cross-sell-mobile-list {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: .5rem;
  }
  
}


/***** Checkout *****/
/* Wrapper */
.shops-checkout-success {
  background-color: #fafafa;
}

/* Left */
.shops-checkout-success-check {
  color: #198754;
}

.shops-checkout-success-label {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #6c757d;
}

/* Right summary */
.shops-checkout-success-summary {
  background-color: var(--bg-light);
  border-radius: 14px;
  padding: 24px;
}

/* Items */
.shops-checkout-success-item + .shops-checkout-success-item {
  margin-top: 16px;
}

.shops-checkout-success-item-image {
  position: relative;
  width: 56px;
  min-width: 56px;
}

.shops-checkout-success-item-qty {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #212529;
  color: #fff;
  font-size: .7rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shops-checkout-success-item-name {
  font-size: .9rem;
}

.shops-checkout-success-item-options {
  font-size: .75rem;
  color: #6c757d;
}

.shops-checkout-success-item-price {
  font-size: .9rem;
  white-space: nowrap;
}
.checkout-estimate-success {
  background-color: #fff;
}

.checkout-estimate-actions .btn {
  min-width: 220px;
}

@media (max-width: 575px) {
  .checkout-estimate-actions {
    gap: 12px;
  }
}




/* ================= GLOBAL ================= */

.shops-checkout-wrapper h5 {
  margin-bottom: 10px;
}

.shops-checkout-right {
    background: var(--bg-light);
}

/* ================= FORM ================= */

.shops-checkout-wrapper .form-control,
.shops-checkout-wrapper .form-select{
  height: 45px!important;
  border-radius: 8px!important;

}

.shops-checkout-wrapper .pac-target-input {
  height: 45px!important;
  border-radius: 8px 0px 0px 8px!important;
}
.shops-checkout-wrapper .form_phone label{
	left: 40px!important;
} 
.shops-checkout-wrapper .btn-lg {
  height: 52px;
  border-radius: 8px;
}

.shops-checkout-wrapper .field-error {
  font-size: .875rem;
}

.shops-checkout-wrapper .field-invalid input,
.shops-checkout-wrapper .field-invalid select {
  border-color: #dc3545 !important;
  /* background-color: #fff5f5; */
}

.shops-checkout-wrapper .field-invalid .field-error {
  display: block;
}


/* ================= FLOATING LABEL ================= */
.shops-checkout-wrapper .shipping-radio, .shops-checkout-wrapper .payment-radio, .shops-checkout-wrapper .billing-radio {margin-top: 5px;}
.shops-checkout-wrapper .floating-label {
  position: relative;
}

.shops-checkout-wrapper .floating-label input,
.shops-checkout-wrapper .floating-label select {
  height: 40px;
  padding: 9px 12px 6px;
  color var(--form-color) !important;
}
.shops-checkout-wrapper .input-group .form-control {
	border-radius: 8px 0 0 8px!important;
}
.shops-checkout-wrapper .input-group-text {
	background-color:var(--btn-1-bg);
	color: var(--btn-1-color);
}


.shops-checkout-wrapper .floating-label label {
  position: absolute;
  left: 17px;
  top: 11px;
  font-size: .9rem;
  color: #adb5bd;
  background: #fff;
  padding: 0 6px;
  pointer-events: none;
  transition: all .15s ease;
  z-index: 3;
}
.shops-checkout-wrapper .floating-label select {
  left: 10px!important;
}
.shops-checkout-wrapper .floating-label input::placeholder {
  padding-left: 10px;
}

.shops-checkout-wrapper .floating-label:has(input:focus) label,
.shops-checkout-wrapper .floating-label:has(input:not(:placeholder-shown)) label,
.shops-checkout-wrapper .floating-label:has(select:focus) label {
  top: -4px;
  font-size: .75rem;
}

/* ================= SUMMARY ================= */

.shops-checkout-summary-scroll {
  max-height: 320px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;
}

/* ================= LOYALTY ================= */

.shops-checkout-loyalty-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #ffb703, #ffd166);
  color: #111;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
}

.shops-checkout-loyalty-label {
  font-size: 12px;
  opacity: .8;
}

/* ================= MOBILE SUMMARY ACCORDION ================= */

@media (max-width: 991px) {

  .summary-toggle {
    display: none;
  }

  .checkout-summary-accordion {
    position: sticky;
    top: var(--main-menu-height);
    z-index: 55;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 8px;
  }

  .summary-toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    font-weight: 600;
    cursor: pointer;
  }

  .summary-qty {
    margin-left: auto;
    font-weight: 700;
    white-space: nowrap;
  }

  .summary-toggle-label .chevron {
    width: 10px;
    height: 10px;
    border-right: 2px solid #111;
    border-bottom: 2px solid #111;
    transform: rotate(45deg);
    transition: transform .2s ease;
    margin-left: 6px;
  }

  /* fermé par défaut */
  .shops-checkout-summary-products {
    display: none;
  }

  /* OUVERT */
  .summary-toggle:checked
  ~ .shops-checkout-summary-products {
    display: block;
    padding: 12px 16px;
    background: #f9fafb;
  }

  .summary-toggle:checked
  ~ .checkout-summary-accordion
  .chevron {
    transform: rotate(-135deg);
  }
}

/* ================= DESKTOP ================= */

@media (min-width: 992px) {
  .checkout-summary-accordion {
    display: none;
  }

  .shops-checkout-summary-products {
    display: block !important;
  }
}

/* ================= Item ================= */
/* =====================================================
   ADD TO CART – MODERN UX (ICON ONLY)
===================================================== */
/* ===============================
   WRAPPER
================================ */
.shops-list .variant-slider-wrapper {
	position: relative;
	display: flex;
	align-items: center;
	gap: 6px;
}

/* ===============================
   SLIDER
================================ */
.shops-list .variant-slider {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	scroll-behavior: smooth;
	padding: 4px 0;

	/* cacher scrollbar */
	scrollbar-width: none;          /* Firefox */
	-ms-overflow-style: none;       /* IE / Edge */
}

.shops-list .variant-slider::-webkit-scrollbar {
	display: none;                  /* Chrome / Safari */
}

/* ===============================
   SLIDE
================================ */
.shops-list .variant-slide {
	flex: 0 0 72px;      /* largeur fixe */
	max-width: 72px;
	min-width: 72px;

	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;

	padding: 6px 4px;
	border: 1px solid #ccc;
	border-radius: 6px;
	background: #fff;
	cursor: pointer;
}
@media (max-width: 575px) {
	.shops-list .variant-slide {
		flex-basis: 60px;
		min-width: 60px;
		max-width: 60px;
	}
}
.shops-list .variant-slide img {
	width: 36px;
	height: 36px;
	object-fit: contain;
}

.shops-list .variant-attribute-label {
	margin-top: 4px;
	font-size: 11px;
	line-height: 1.1;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}


/* pas de focus visible (évite scroll parasite) */
.shops-list .variant-slide:focus {
	outline: none;
}

.shops-list .variant-slide img {
	width: 40px;
	height: 40px;
	object-fit: contain;
	pointer-events: none;
	user-drag: none;
	-webkit-user-drag: none;
}

/* état actif */
.shops-list .variant-slide.active {
	border-color: #5b6f2b;
	background: #eef2e3;
}

/* ===============================
   FLÈCHES
================================ */
.shops-list .variant-nav {
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	border: none;
	background: #ffffff;
	color: #333;
	font-size: 20px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	user-select: none;
}

/* plus de position absolute */
.shops-list .variant-nav.prev {
	margin-right: 4px;
}

.shops-list .variant-nav.next {
	margin-left: 4px;
}

/* hover desktop */
@media (hover: hover) {
	.shops-list .variant-nav:hover {
		background: #f2f2f2;
	}
}

/* flèches cachées si inutiles (piloté par JS) */
.shops-list .variant-nav[style*="display: none"] {
	pointer-events: none;
}

/* hover desktop */
@media (hover: hover) {
	.shops-list .variant-nav:hover {
		background: #f2f2f2;
	}
}


.add-to-cart-modern .buy-zone {
  display: flex;
  align-items: center;
  gap: 6px;
}
.add-to-cart-modern.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}
/* =====================================================
   QUANTITY STEPPER
===================================================== */
.add-to-cart-modern {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stock-message {
  margin-top: .5rem;
  font-size: .9rem;
  font-weight: 500;
  color: #6c757d; /* gris doux */
  text-align: center;
}

.add-to-cart-modern.is-disabled {
  opacity: .6;
}


.qty-stepper {
  display: flex;
  align-items: center;
  height: 36px;
  width: auto;
  border: 1px solid #ddd;
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
}

.qty-btn {
  width: 28px;
  height: 36px;
  border: none;
  background: #f6f6f6;
  color: #111;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.qty-btn:active {
  background: #e9e9e9;
}

.qty-input {
  width: 50px;
  height: 36px;
  border: none;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  padding: 0;
  appearance: textfield;
}

/* supprimer flèches input number */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* =====================================================
   ADD BUTTON (ICON ONLY)
===================================================== */

.btn-add,
.js-add-to-cart {
  flex: 1;
  height: 36px;
  border-radius: 9px;
  border: none;
  background: #111;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-add i,
.js-add-to-cart i {
  font-size: 16px;
}

/* =====================================================
   STATES UX
===================================================== */

.js-add-to-cart.is-loading {
  opacity: 0.6;
  pointer-events: none;
}

.js-add-to-cart.is-added {
  background: #3c8964;
}

.js-add-to-cart.is-error {
  background: #c0392b;
}

/* micro animation */
.js-add-to-cart.is-added {
  animation: add-pop 0.25s ease-out;
}

@keyframes add-pop {
  from {
    transform: scale(0.96);
  }
  to {
    transform: scale(1);
  }
}

/* =====================================================
   MOBILE 2 COLUMNS OPTIMISATION
===================================================== */

@media (max-width: 576px) {
  .add-to-cart-modern {
    gap: 5px;
  }

  .qty-btn {
    width: 26px;
  }

  .qty-input {
    width: 50px;
    font-size: 13px;
  }

  .btn-add,
  .js-add-to-cart {
    height: 36px;
  }

  .btn-add i,
  .js-add-to-cart i {
    font-size: 15px;
  }
}

/* =====================================================
   ACCESSIBILITY
===================================================== */

.js-add-to-cart:focus-visible,
.qty-btn:focus-visible,
.qty-input:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.4);
  outline-offset: 2px;
}


/* =====================================================
   SHIPPING PROGRESS – UX PREMIUM (FIX DOTS)
===================================================== */

.shops-cart-shippings-status {
  padding: 12px 16px 16px;
}

/* Container */
.shipping-progress {
  background: #faf9f7;
  border-radius: 14px;
  padding: 12px 14px 0px;
}

/* Message */
.shipping-message {
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 12px;
}

.shipping-progress .progress {
  height: 5px;
  background: #e6e6e6;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.shipping-progress .progress-bar {
  background: linear-gradient(90deg, #3c8964, #5fbf90);
  transition: width 0.35s ease;
}

.shipping-steps-wrapper {
  position: relative;
  margin-top: -9px; /* 🔥 espace clair sous la barre */
}

/* Steps rail */
.shipping-steps {
  position: relative;
  height: 48px;
}

.shipping-step {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  text-align: center;
  max-width: 90px;
  font-size: 10px;
  color: #9a9a9a;
  z-index: 3;
  pointer-events: none;
}
.shipping-step {
  left: calc(var(--step-x) * 1%);
}
.shipping-step:last-child {
  transform: translateX(-100%);
  text-align: right;
}

.shipping-steps {
  padding-left: 18px;
  padding-right: 32px;
}

.shipping-step:last-child {
  transform: translateX(-100%);
  text-align: right;
}


.shipping-step .dot {
  width: 13px;
  height: 13px;
  display: block;
  border-radius: 50%;
  background: #cfcfcf;

  /* halo externe très léger */
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);

  margin: 0 auto 6px;
  position: relative;
  z-index: 3;

  transition:
    background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.shipping-step .amount {
  display: block;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 2px;
}

.shipping-step .label {
  display: block;
  font-size: 9.5px;
  line-height: 1.2;
  word-break: break-word;
}


.shipping-step.is-active {
  color: #3c8964;
}


.shipping-step.is-active .dot {
  background: #3c8964;
  box-shadow: 0 0 0 4px rgba(60, 137, 100, 0.18);
  transform: scale(1.15);
}

.shipping-step.is-next {
  color: #333;
}
.shipping-step.is-next .dot {
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(95, 191, 144, 0.35);
  border: 1px solid #5fbf90;
  transform: scale(1.1);
}

@media (max-width: 576px) {
  .shipping-steps {
    height: 44px;
  }

  .shipping-step {
    max-width: 72px;
    font-size: 9px;
  }

  .shipping-step .amount {
    font-size: 10px;
  }
}

.shipping-step {
  cursor: default;
}

/* Tooltip bubble */
.shipping-step::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translate(-50%, -6px);

  background: #111;
  color: #fff;
  padding: 6px 8px;
  border-radius: 6px;

  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 10;
}

/* Tooltip arrow */
.shipping-step::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);

  border: 5px solid transparent;
  border-top-color: #111;

  opacity: 0;
  transition: opacity 0.2s ease;
}

/* Hover desktop */
@media (hover: hover) and (pointer: fine) {
  .shipping-step:hover::after {
    opacity: 1;
    transform: translate(-50%, -10px);
  }

  .shipping-step:hover::before {
    opacity: 1;
  }
}

/* Disable tooltip on mobile */
@media (hover: none) {
  .shipping-step::after,
  .shipping-step::before {
    display: none;
  }
}
@media (hover: hover) and (pointer: fine) {

  .shipping-step {
    pointer-events: auto;
  }

  .shipping-step::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-6px);

    background: #111;
    color: #fff;
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;

    padding: 6px 8px;
    border-radius: 6px;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;

    z-index: 999;
  }

  .shipping-step:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
  }
}