/* FD — Souvent achetés ensemble */
.fbt-pack-host {
  width: 100%;
  clear: both;
}

.fbt-pack {
  margin: 32px 0;
  padding: 28px 24px 24px;
  background: var(--fbt-bg) 0% 0% no-repeat padding-box;
  border-radius: 12px;
}

.fbt-pack--placed {
  margin-top: 28px;
  margin-bottom: 28px;
}

section.fbt-pack > h2.fbt-pack__title,
.fbt-pack > h2.fbt-pack__title {
  margin: 0 0 24px;
  text-align: center;
  font-family: var(--fbt-font-family, inherit);
  font-size: 28px !important;
  font-weight: 800 !important;
  line-height: 34px !important;
  letter-spacing: -0.02em;
  color: var(--fbt-title-color, #111827) !important;
  text-transform: none;
}

.fbt-pack__flash {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

.fbt-pack__flash--error {
  color: #7f1d1d;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.fbt-pack__flash--ok {
  color: #14532d;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.fbt-pack__mobile {
  display: none;
}

.fbt-pack__mobile-hero {
  width: 100%;
  max-width: 280px;
  margin: 0 auto 12px;
  text-align: center;
}

.fbt-pack__mobile-hero-img {
  width: 100%;
  max-width: 280px;
  height: auto;
  object-fit: contain;
}

.fbt-pack__plus--mobile {
  margin: 8px auto 12px;
}

.fbt-pack__count--mobile {
  margin: 0 0 16px;
  text-align: center;
}

.fbt-pack__mobile-thumbs {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 10px;
  width: 100%;
  overflow-x: auto;
  padding: 0 4px 8px;
  -webkit-overflow-scrolling: touch;
}

.fbt-pack__mobile-thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--fbt-card-border);
  background: #fff;
  display: block;
  text-decoration: none;
  color: inherit;
}

.fbt-pack__mobile-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fbt-pack__mobile-sep {
  width: 100%;
  max-width: 400px;
  height: 1px;
  margin: 16px auto 20px;
  background: var(--fbt-card-border);
}

.fbt-pack__mobile-footer {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.fbt-pack__cta--outline {
  background: transparent;
  border: 2px solid var(--fbt-cta-bg);
  color: var(--fbt-cta-bg);
  box-shadow: none;
}

.fbt-pack__cta--outline:hover {
  opacity: 0.9;
  background: transparent;
}

.fbt-pack__grid,
.fbt-pack__products-row {
  display: flex;
  justify-content: center;
  gap: 12px 12px;
  flex-wrap: wrap;
  align-items: stretch;
  --fbt-pack-label-height: 26px;
  --fbt-card-min-height: 300px;
}

.fbt-pack__slot {
  flex: 1 1 200px;
  max-width: 260px;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.fbt-pack__slot-label {
  flex: 0 0 auto;
  min-height: var(--fbt-pack-label-height);
  margin: 0 0 8px;
  text-align: center;
  font: normal normal 600 14px/18px var(--fbt-font-family, inherit);
  color: var(--fbt-title-color);
}

.fbt-pack__slot-label--spacer {
  visibility: hidden;
  min-height: var(--fbt-pack-label-height);
  margin: 0 0 8px;
  user-select: none;
}

.fbt-pack__plus {
  flex: 0 0 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: 32px;
  height: 32px;
  margin: 0 4px;
  background: var(--fbt-card-selected-bg) 0% 0% no-repeat padding-box;
  border-radius: 4px;
  color: #fff;
  font: normal normal bold 20px/1 var(--fbt-font-family, inherit);
}

.fbt-card-wrap {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  width: 100%;
  min-height: 0;
  transition: opacity 0.2s ease;
}

.fbt-card {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 0;
  padding: 12px 14px 16px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--fbt-card-border);
  border-radius: 8px;
  overflow: hidden;
}

.fbt-card-wrap:not(.is-checked-ce) {
  opacity: 0.45;
}

.fbt-card-wrap.is-checked-ce {
  opacity: 1;
}

.fbt-card-wrap.is-checked-ce .fbt-card:not(.fbt-card--main) {
  background: #fff !important;
  border-color: var(--fbt-card-selected-bg);
  box-shadow: none;
}

.fbt-card__check {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  margin: 0;
  padding: 10px 14px;
  cursor: pointer;
  /* Larger hit area around the box (themes / CCC-safe). */
}


.fbt-card__checkbox {
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
  border: 1px solid var(--fbt-card-selected-bg);
  border-radius: 3px;
  background: #fff;
  appearance: none;
  -webkit-appearance: none;
}

.fbt-card__checkbox:checked {
  background: var(--fbt-card-selected-bg) 0% 0% no-repeat padding-box;
  border-color: var(--fbt-card-selected-bg);
}

.fbt-card__checkbox:checked::after {
  content: "";
  display: block;
  width: 10px;
  height: 6px;
  margin: 3px auto 0;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.fbt-card__image-wrap,
.fbt-card__image-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 100%;
  min-height: 132px;
  margin: 20px 0 8px;
  text-align: center;
}

.fbt-card__image {
  width: 100%;
  max-width: 200px;
  height: auto;
  max-height: 132px;
  object-fit: contain;
  pointer-events: none;
}

.fbt-card__promo {
  position: absolute;
  top: 0;
  right: 0;
  left: auto;
  padding: 3px 8px;
  background: #dc2626 0% 0% no-repeat padding-box;
  border-radius: 0 8px 0 8px;
  font: normal normal 800 14px/18px var(--fbt-font-family, inherit);
  letter-spacing: 0;
  color: #fff;
  text-transform: none;
}

.fbt-card__name {
  display: -webkit-box;
  width: 100%;
  min-height: 57px;
  margin: 0 0 4px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font: normal normal bold 16px/19px var(--fbt-font-family, inherit);
  letter-spacing: 0;
  color: #64748b;
}

.fbt-card .fd-carousel-skeepers-stars {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 100%;
  min-height: 20px;
  margin: 0 0 4px;
}

.fbt-card__name-link {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.fbt-card__name-link:hover,
.fbt-card__name-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.js-fbt-card-wrap:not(.is-out-of-stock) {
  cursor: pointer;
}

.js-fbt-card-wrap:not(.is-out-of-stock) .fbt-card__variant-box,
.js-fbt-card-wrap:not(.is-out-of-stock) .fbt-card__qty {
  cursor: auto;
}

.js-fbt-card-wrap:not(.is-out-of-stock) .fbt-card__check,
.js-fbt-card-wrap:not(.is-out-of-stock) .fbt-card__checkbox {
  cursor: pointer;
}

.js-fbt-card-wrap:not(.is-out-of-stock) .fbt-card__variant,
.js-fbt-card-wrap:not(.is-out-of-stock) .fbt-qty__qty-btn {
  cursor: pointer;
}

.fbt-card__rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  margin-bottom: 8px;
  font-size: 12px;
  color: #64748b;
}

.fbt-card__stars {
  display: inline-block;
  width: 70px;
  height: 14px;
  background: linear-gradient(90deg, #facc15 calc(var(--fbt-pack-grade, 0) * 20%), var(--fbt-card-border) calc(var(--fbt-pack-grade, 0) * 20%));
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 70 14'%3E%3Ctext y='12' font-size='12' fill='black'%3E★★★★★%3C/text%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 70 14'%3E%3Ctext y='12' font-size='12' fill='black'%3E★★★★★%3C/text%3E%3C/svg%3E");
}


.fbt-card__variant-box {
  flex: 0 0 auto;
  box-sizing: border-box;
  width: 100%;
  margin-top: 8px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--fbt-card-border);
  border-radius: 8px;
}

.fbt-card__variant-label {
  display: block;
  width: 100%;
  margin: 0;
  cursor: pointer;
}

.fbt-card__variant-caption {
  display: block;
  margin: 0 0 4px;
  text-align: left;
  font: normal normal 600 12px/16px var(--fbt-font-family, inherit);
  letter-spacing: 0;
  color: #64748b;
}

.fbt-card__variant-select-wrap {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--fbt-card-border);
  border-radius: 6px;
  background: #fff;
  box-sizing: border-box;
}

.fbt-card__variant-select-wrap:focus-within {
  border-color: var(--fbt-card-selected-bg);
  box-shadow: 0 0 0 1px var(--fbt-card-selected-bg);
}

.fbt-card__variant-box:focus-within {
  box-shadow: none;
}

.fbt-card__variant {
  display: block;
  width: 100%;
  min-height: 38px;
  padding: 8px 36px 8px 10px;
  border: none;
  border-radius: 6px;
  text-align: left;
  text-align-last: left;
  font: normal normal 600 14px/20px var(--fbt-font-family, inherit);
  letter-spacing: 0;
  color: var(--fd-text-dark, #111827);
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}

.fbt-card__variant-chevron {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 8px;
  height: 8px;
  margin-top: -6px;
  border-right: 2px solid var(--fd-text-dark, #111827);
  border-bottom: 2px solid var(--fd-text-dark, #111827);
  transform: rotate(45deg);
  pointer-events: none;
}

.fbt-card__prices {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: center;
  gap: 0 6px;
  width: 100%;
  margin-top: auto;
  padding-top: 8px;
  text-align: center;
  white-space: nowrap;
}

.fbt-card-wrap:not(.is-checked-ce) .fbt-card__variant-box,
.fbt-card-wrap:not(.is-checked-ce) .fbt-card__qty {
  display: none;
}

.fbt-card__qty {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 10px;
}

.fbt-card-wrap:not(:has(.fbt-card__variant-box)) .fbt-card__qty {
  margin-top: auto;
  padding-top: 8px;
}

.fbt-card__qty-wrap.fbt-qty__qty {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--fd-green-light);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.fbt-card__qty-wrap .fbt-qty__qty-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: var(--fd-beige-dark);
  color: var(--fd-green-dark);
  font: normal normal bold 18px/1 var(--fbt-font-family, inherit);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.fbt-card__qty-wrap .fbt-qty__qty-btn:hover {
  background: var(--fd-green-dark);
  color: #fff;
}

.fbt-card__qty-wrap .fbt-qty__qty-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.fbt-card__qty-wrap .fbt-qty__qty-value {
  min-width: 40px;
  padding: 0 8px;
  font: normal normal bold 16px/36px var(--fbt-font-family, inherit);
  color: var(--fd-text-dark);
  text-align: center;
}

.fbt-card__prices .fbt-card__price-line,
.fbt-card__prices .fbt-card__regular-line {
  flex-shrink: 0;
  white-space: nowrap;
}

.fbt-card__price-line {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  font: normal normal 800 20px/24px var(--fbt-font-family, inherit);
  letter-spacing: 0;
  color: var(--fbt-title-color);
}

.fbt-card__price-line.fbt-card__price--promo {
  color: #dc2626;
}

.fbt-card__price-value {
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  color: inherit;
  font-weight: inherit;
}

.fbt-card__ttc {
  font-size: 0.58em;
  line-height: 0;
  letter-spacing: inherit;
  color: inherit;
  vertical-align: super;
  font-weight: inherit;
}

.fbt-card__regular-line {
  display: inline-flex;
  align-items: baseline;
}

.fbt-card__regular.fbt-card__price-line {
  font: normal normal 400 12px/16px var(--fbt-font-family, inherit);
  color: var(--fd-text-grey-light);
}

.fbt-card__regular .fbt-card__price-value,
.fbt-card__regular .fbt-card__ttc {
  text-decoration: line-through;
}

.fbt-card__regular--hidden,
.fbt-pack__total-old--hidden {
  display: none;
}

.fbt-pack__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--fbt-card-border);
}

.fbt-pack__count {
  flex: 1 1 200px;
  margin: 0;
  font: normal normal 500 16px/22px var(--fbt-font-family, inherit);
  letter-spacing: 0;
  color: #64748b;
}

.fbt-pack__summary {
  flex: 1 1 280px;
  text-align: center;
}

.fbt-pack__total-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: center;
  gap: 6px 10px;
  margin: 0;
  white-space: nowrap;
}

.fbt-pack__total-label {
  font: normal normal normal 23px/29px var(--fbt-font-family, inherit);
  letter-spacing: 0;
  color: var(--fd-text);
}

.fbt-pack__total-prices {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 0 8px;
  white-space: nowrap;
}

.fbt-pack__total-prices .fbt-card__price-line {
  flex-shrink: 0;
  white-space: nowrap;
}

.fbt-pack__total-current.fbt-card__price-line {
  font: normal normal 800 24px/29px var(--fbt-font-family, inherit);
  color: var(--fbt-title-color);
}

.fbt-pack__total-current.fbt-card__price-line.fbt-card__price--promo {
  color: #dc2626;
}

.fbt-pack__total-old.fbt-card__price-line {
  font: normal normal normal 18px/22px var(--fbt-font-family, inherit);
  color: var(--fd-text-grey-light);
}

.fbt-pack__total-old .fbt-card__price-value,
.fbt-pack__total-old .fbt-card__ttc {
  text-decoration: line-through;
}

.fbt-pack__shipping {
  margin: 8px 0 0;
  font: normal normal 500 16px/22px var(--fbt-font-family, inherit);
  letter-spacing: 0;
  color: #64748b;
  text-align: center;
}

.fbt-pack-shipping__line {
  display: inline;
  white-space: nowrap;
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
}

.fbt-pack-shipping__line strong {
  font-weight: 700;
  color: #64748b;
}

.fbt-pack__cta {
  flex: 0 1 320px;
  min-width: 220px;
  min-height: 0;
  height: auto;
  margin-left: auto;
  padding: 14px 20px;
  border: none;
  border-radius: 25px;
  background: var(--fbt-cta-bg) 0% 0% no-repeat padding-box;
  font: normal normal 800 15px/18px var(--fbt-font-family, inherit);
  letter-spacing: 0;
  color: #fff;
  text-transform: none;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  transition: background 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.fbt-pack__cta:hover {
  background: var(--fbt-cta-bg) 0% 0% no-repeat padding-box;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.fbt-pack__cta:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 991px) {
  .fbt-pack {
    padding: 20px 16px 18px;
  }

  .fbt-pack > h2.fbt-pack__title,
  section.fbt-pack > h2.fbt-pack__title {
    font-size: 24px !important;
    line-height: 30px !important;
    margin-bottom: 18px;
  }

  .fbt-pack__mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .fbt-pack__desktop {
    display: none;
  }

  .fbt-pack.fbt-pack--show-selection .fbt-pack__mobile {
    display: none;
  }

  .fbt-pack.fbt-pack--show-selection .fbt-pack__desktop {
    display: block;
  }

  .fbt-pack-shipping__line {
    white-space: normal;
  }

  .fbt-pack__grid,
  .fbt-pack__products-row {
    flex-direction: column;
    align-items: center;
    --fbt-card-min-height: 280px;
  }

  .fbt-pack__slot {
    width: 100%;
    max-width: 320px;
    min-width: 0;
  }

  .fbt-pack__slot-label--spacer {
    display: none;
    min-height: 0;
    margin: 0;
  }

  .fbt-pack__plus {
    margin: 8px 0;
    align-self: center;
  }

  .fbt-pack__footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .fbt-pack__count {
    flex: 0 0 auto;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
  }

  .fbt-pack__summary {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    text-align: center;
  }

  .fbt-pack__total-row {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    white-space: normal;
  }

  .fbt-pack__total-label {
    font-size: 18px;
    line-height: 22px;
  }

  .fbt-pack__total-prices {
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 10px;
    max-width: 100%;
    white-space: normal;
  }

  .fbt-pack__total-prices .fbt-card__price-line {
    white-space: nowrap;
  }

  .fbt-pack__total-current.fbt-card__price-line {
    font-size: 22px;
    line-height: 26px;
  }

  .fbt-pack__total-old.fbt-card__price-line {
    font-size: 15px;
    line-height: 18px;
  }

  .fbt-pack__shipping {
    font-size: 14px;
    line-height: 20px;
    padding: 0 4px;
  }

  .fbt-pack__cta {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin-left: 0;
    padding: 12px 16px;
    font-size: 14px;
    line-height: 17px;
    white-space: normal;
  }
}

/* fbt-selected-readable-v2 */

/* fbt-card-click-hitarea-v1 */

/* Native accessories — compact list above add to cart */
.fbt-accessories {
  margin: 16px 0;
  padding: 14px 16px 10px;
  background: #fff;
  border: 1px solid var(--fbt-card-border, #e5e7eb);
  border-radius: 10px;
  font-family: var(--fbt-font-family, inherit);
}

.fbt-accessories--placed {
  margin-top: 8px;
  margin-bottom: 16px;
}

.fbt-accessories__title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--fbt-title-color, #111827);
}

.fbt-accessories__flash {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.35;
}

.fbt-accessories__flash--error {
  color: #7f1d1d;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.fbt-accessories__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fbt-accessories__item {
  margin: 0;
  padding: 8px 0;
  border-top: 1px solid #f3f4f6;
}

.fbt-accessories__item:first-child {
  border-top: 0;
  padding-top: 0;
}

.fbt-accessories__item.is-out-of-stock {
  opacity: 0.55;
}

.fbt-accessories__row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  cursor: pointer;
}

.fbt-accessories__check {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--fbt-cta-bg, #2fb5d2);
}

.fbt-accessories__thumb {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 6px;
  overflow: hidden;
  background: #f9fafb;
  border: 1px solid #eef0f2;
}

.fbt-accessories__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fbt-accessories__info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fbt-accessories__name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: inherit;
  text-decoration: none;
}

.fbt-accessories__name:hover {
  text-decoration: underline;
}

.fbt-accessories__stock {
  font-size: 12px;
  color: #b91c1c;
}

.fbt-accessories__price {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  color: var(--fbt-title-color, #111827);
  white-space: nowrap;
}

.fbt-accessories__variant {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 6px 0 0 28px;
}

.fbt-accessories__variant-label {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
}

.fbt-accessories__select {
  width: 100%;
  max-width: 220px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--fbt-card-border, #e5e7eb);
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
}

.fbt-accessories__item.is-checked .fbt-accessories__row {
  color: inherit;
}
