/* Linov - Panier flottant (reprend le panier volant "slidebar bas" du site d'origine) */

/* ----- Bouton fixe ----- */
.linov-flycart {
  position: fixed;
  z-index: 999;
}

.linov-flycart__toggle {
  display: flex;
  padding: 0;
  cursor: pointer;
  background: none;
  border: 0;
}

.linov-flycart__icon {
  display: inline-block;
  width: 30px;
  height: 30px;
  line-height: 30px;
  color: #fff;
  text-align: center;
  background: #b1d978;
}

.linov-flycart__icon .material-icons {
  font-size: 14px;
  line-height: 30px;
  vertical-align: top;
}

.linov-flycart__count {
  display: inline-block;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  font-size: 14px;
  line-height: 26px;
  color: #b1d978;
  text-align: center;
  background: #fff;
  border: 2px solid #b1d978;
  border-left: 0;
}

.linov-flycart.is-empty .linov-flycart__toggle {
  cursor: default;
}

/* ----- Fond et volet ----- */
.linov-flycart__mask {
  position: fixed;
  inset: 0;
  z-index: 9999;
  visibility: hidden;
  background: #000;
  opacity: 0;
  transition: opacity 0.8s, visibility 0s 0.8s;
}

.linov-flycart-open .linov-flycart__mask {
  visibility: visible;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.linov-flycart-open {
  overflow: hidden;
}

.linov-flycart__panel {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 99999;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  visibility: hidden;
  background: #fff;
  border-top: 2px solid #000;
  transform: translateY(100%);
  transition: transform 0.3s, visibility 0s 0.3s;
}

.linov-flycart-open .linov-flycart__panel {
  visibility: visible;
  transform: translateY(0);
  transition: transform 0.3s;
}

.linov-flycart__close {
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 1;
  width: 30px;
  height: 30px;
  padding: 0;
  color: #343434;
  cursor: pointer;
  background: none;
  border: 0;
}

.linov-flycart__close:hover {
  color: #f37600;
}

.linov-flycart__content {
  display: flex;
  align-items: center;
  font-size: 14px;
  line-height: 1.25;
}

.linov-flycart__content.is-loading {
  pointer-events: none;
  opacity: 0.5;
}

/* ----- Produits (liste horizontale) ----- */
.linov-flycart__list-wrapper {
  flex: 0 1 auto;
  min-width: 0;
  overflow-x: auto;
  border-right: 1px solid #ddd;
}

.linov-flycart__list {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.linov-flycart__item {
  position: relative;
  display: flex;
  flex: 0 0 300px;
  min-height: 135px;
  padding: 10px;
}

.linov-flycart__item:not(:last-child) {
  border-right: 1px solid #ddd;
}

.linov-flycart__img {
  flex: 0 0 35%;
}

.linov-flycart__img img {
  display: block;
  width: 100%;
  height: auto;
}

.linov-flycart__info {
  flex: 0 0 65%;
  min-width: 0;
  padding-left: 10px;
}

.linov-flycart__name {
  font-size: 13px;
  color: #343434;
  text-decoration: none;
}

.linov-flycart__name:hover {
  color: #f37600;
}

.linov-flycart__attributes {
  font-size: 12px;
  color: #999;
}

.linov-flycart__price {
  padding: 5px 0;
  font-size: 14px;
}

.linov-flycart__regular-price {
  color: #999;
  text-decoration: line-through;
}

.linov-flycart__current-price {
  color: #f37600;
  font-weight: 700;
}

.linov-flycart__unit-price {
  display: block;
  font-size: 12px;
}

.linov-flycart__qty {
  display: flex;
  margin-top: 10px;
}

.linov-flycart__qty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  color: #343434;
  cursor: pointer;
  background: #e1e1e1;
  border: 1px solid #e1e1e1;
}

.linov-flycart__qty-btn .material-icons {
  font-size: 14px;
  line-height: 1;
}

.linov-flycart__qty-btn:hover {
  color: #fff;
  background: #f37600;
  border-color: #f37600;
}

.linov-flycart__qty-input {
  width: 46px;
  height: 30px;
  margin: 0 2px;
  padding: 0 7px;
  text-align: center;
  border: 1px solid #e1e1e1;
  -moz-appearance: textfield;
}

.linov-flycart__qty-input::-webkit-outer-spin-button,
.linov-flycart__qty-input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.linov-flycart__remove {
  position: absolute;
  right: 5px;
  bottom: 5px;
  padding: 0;
  color: #2fb5d2;
  cursor: pointer;
  background: none;
  border: 0;
}

.linov-flycart__remove:hover {
  color: #f37600;
}

/* ----- Totaux et boutons ----- */
.linov-flycart__bottom {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  min-width: 400px;
  padding-top: 10px;
}

.linov-flycart__totals {
  width: 60%;
  padding: 0 5px;
}

.linov-flycart__row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
}

.linov-flycart__row:not(.linov-flycart__row--total) {
  border-top: 1px solid #ddd;
}

.linov-flycart__row:nth-last-child(2) {
  border-bottom: 1px solid #ddd;
}

.linov-flycart__label {
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
}

.linov-flycart__row--total .linov-flycart__value {
  font-weight: 600;
}

.linov-flycart__actions {
  width: 40%;
  padding: 0 5px;
}

.linov-flycart__btn {
  display: block;
  margin: 10px 0;
  padding: 8px 20px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  background-color: #282d35;
  border: 1px solid #282d35;
  transition: all 0.3s;
}

.linov-flycart__btn:hover,
.linov-flycart__btn:focus {
  color: #fff;
  background-color: #f37600;
  border-color: #f37600;
}

@media (max-width: 767px) {
  .linov-flycart__content {
    display: block;
  }

  .linov-flycart__list-wrapper {
    border-right: 0;
    border-bottom: 1px solid #ddd;
  }

  .linov-flycart__bottom {
    display: block;
    min-width: 0;
    padding-top: 0;
  }

  .linov-flycart__totals,
  .linov-flycart__actions {
    width: auto;
  }

  .linov-flycart__row {
    padding: 5px 10px;
  }
}

/* ----- Bandeau "produit ajouté" (notification leofeature du site d'origine) ----- */
.linov-flycart-notifications {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1100;
  width: 100%;
  box-shadow: 0 4px 4px -4px #eee;
}

.linov-flycart-notification {
  max-height: 100px;
}

.linov-flycart-notification.is-closing {
  max-height: 0;
  transition: max-height 0.7s;
}

.linov-flycart-notification__inner {
  position: relative;
  padding: 10px 15px;
  line-height: 25px;
  color: #fff;
  text-align: center;
  cursor: pointer;
  background: #b1d978;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-50px);
  transition: 0.7s;
}

.linov-flycart-notification.is-shown .linov-flycart-notification__inner {
  visibility: visible;
  opacity: 1;
  transform: none;
}

.linov-flycart-notification.is-closing .linov-flycart-notification__inner {
  visibility: hidden;
  opacity: 0;
  transform: translateY(-50px);
}

.linov-flycart-notification__icon {
  display: inline-block;
  margin-right: 15px;
  padding: 0 15px;
  line-height: 30px;
  background: #27ae60;
}

.linov-flycart-notification__icon .material-icons {
  font-size: 24px;
  line-height: 30px;
  vertical-align: top;
}

.linov-flycart-notification__text {
  display: block;
}

.linov-flycart-notification__name {
  text-transform: capitalize;
}

.linov-flycart-notification__close {
  position: absolute;
  right: 10px;
  bottom: 12px;
  padding: 0 10px;
  font-size: inherit;
  line-height: 20px;
  color: #fff;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.2);
  border: 0;
}

/* Photo qui "vole" vers le panier */
.linov-flycart-flyer {
  position: absolute;
  z-index: 100000;
  margin: 0;
  pointer-events: none;
  object-fit: cover;
}
