.chain-category-banner {
  position: relative;
  width: 100%;
  min-height: 160px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  transition: transform 0.2s ease;
}

.chain-category-banner:hover {
  transform: translateY(-2px);
}

/* overlay sombre pour lisibilité */
.chain-category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.65),
    rgba(0,0,0,0.25)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

/* contenu centré */
.chain-category-content {
  text-align: center;
  color: #fff;
  max-width: 90%;
}

/* titre */
.chain-category-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}

/* images rondes */
.chain-category-title img {
  width: 50px!important;
  height: 50px!important;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.8);
}

/* description */
.chain-category-desc {
  font-size: 13px;
  opacity: 0.9;
  margin-bottom: 10px;
}

/* CTA bouton */
.chain-category-cta {
  display: inline-block;
  padding: 6px 12px;
  font-size: 13px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 20px;
  backdrop-filter: blur(6px);
}

.ps-customizer .modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    padding:20px;
    overflow: auto;
    background: rgba(0, 0, 0, 0.4);
    font-size: 16px!important;
    color: #1d1d1d!important;
}

.ps-customizer .modal-content {
    background-color: #fefefe;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    flex-direction: row !important;
}

.ps-customizer .close {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;

  font-size: 28px !important;
  cursor: pointer;

  width: 40px;
  height: 40px;

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

  background: rgba(0, 0, 0, 0.6);
  color: #fff!important;

  border-radius: 50%;

  transition: all 0.2s ease;
}

.ps-customizer .close:hover {
  background: rgba(0, 0, 0, 0.85);
  transform: scale(1.05);
}

.ps-customizer .close:hover,
.ps-customizer .close:focus {
    color: black;
    text-decoration: none;
}

/* OPTIONS */
.ps-customizer .image-option,
.ps-customizer .component-option,
.ps-customizer .gravure-option {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ps-customizer .image-option label,
.ps-customizer .component-option label,
.ps-customizer .gravure-option label {
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 160px;
    text-align: center;
}

/* RADIO HIDDEN */
.ps-customizer input[type="radio"] {
    position: absolute;
    opacity: 0;
}

/* IMAGES */
.ps-customizer .image-option img,
.ps-customizer .component-option img,
.ps-customizer .gravure-option img {
    width: 100px;
    border: 4px solid transparent;
    border-radius: 50%;
    transition: border 0.3s ease;
}

.ps-customizer input[type="radio"]:checked + img {
    border: 4px solid #b9925e;
}

/* TEXTS */
.ps-customizer .name {
    font-weight: bold;
    padding: 7px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ps-customizer .gravure-option .price {
    display: none;
}

/* LAYOUT */
.ps-customizer .composantsection {
    display: flex;
    flex-wrap: wrap;
}

.ps-customizer .composantsection_div {
    padding: 15px;
}

.ps-customizer .hidden {
    display: none;
}

.ps-customizer #dynamicForm {
    display: flex;
    width:100%;
}

/* BUTTONS */
.ps-customizer .btn {
    font-family: Poppins;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    padding: 11px 20px;
    background: #000;
    border: 1px solid #000;
}
.ps-customizer span {
    font-size: 14px!important;
    font-weight: 500!important;
    color: #000!important;
}

.ps-customizer #prevBtn {
    background: #fff !important;
    color: #000 !important;
    border: 1px solid rgba(0,0,0,.5) !important;
    margin-right: 15px;
}

/* STEP SYSTEM */
.ps-customizer .step {
    border: 1px solid #ddd;
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.ps-customizer .step-header {
    padding: 15px;
    font-weight: bold;
    background: #f5f5f5;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
}
.image-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.image-wrapper img {
  display: block;
  width: 100%;
}

.image-title-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  background: rgba(0,0,0,0.6);
  color: #fff;

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

  font-size: 14px;
  font-weight: 500;

  z-index: 10;
  pointer-events: none;
}

/* image mini dans le texte */
.overlay-product img {
  width: 50px!important;
  height: 50px!important;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.8);
  object-fit: cover;
  flex-shrink: 0;
}
.ps-customizer .step-content {
    padding: 15px;
    max-height: 0;
    opacity: 0;
    overflow: scroll;
    transition: all 0.35s ease;
}

.ps-customizer .step.active .step-content {
    max-height: 500px;
    opacity: 1;
}
.ps-customizer .compat-product img{
    width:80px;
}
.ps-customizer .compat-product {
  display: flex;
  align-items: center;
  gap: 16px;

  padding: 12px;
  border: 1px solid #e5e5e5;
  border-radius: 12px;

  width: 100%;
  box-sizing: border-box;
}

.ps-customizer .compat-product img {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.ps-customizer .compat-product__content {
  flex: 1;
  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ps-customizer .compat-product__content strong {
  font-size: 15px;
  line-height: 1.3;
  color: #222;
}

 .ps-customizer .compat-product__content small {
  font-size: 13px;
  color: #777;
}

.compat-badge {
  margin-top: 4px;

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

  font-size: 13px;
  line-height: 1.4;
}

/* OK */
.compat-ok .compat-badge {
  background: #ecfdf3;
  color: #027a48;
}

/* Moyen */
.compat-medium .compat-badge {
  background: #fffaeb;
  color: #b54708;
}

/* Danger */
.compat-danger .compat-badge {
  background: #fef3f2;
  color: #b42318;
}

.ps-customizer .step.done {
    border-left: 2px solid #b9925e;
}


/* BOTTOM ACTIONS */
.ps-customizer .bottomstep {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
}

/* CUSTOM SELECT */
.ps-customizer .custom-select {
    position: relative;
}

.ps-customizer .custom-select__trigger {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    background: white;
    cursor: pointer;
}

.ps-customizer .custom-select__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    display: none;
    max-height: 250px;
    overflow-y: auto;
    z-index: 99999;
}

.ps-customizer .custom-select__option {
    padding: 10px;
    border-bottom: 1px solid #f3f3f3;
    cursor: pointer;
}

/* SIZE OPTIONS */
.ps-customizer .size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ps-customizer .size-option {
    width: calc(50% - 10px);
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
}

.ps-customizer .size-option.selected {
    border: 2px solid #b9925e;
    background: #faf7f2;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .ps-customizer .component-option label,
    .ps-customizer .image-option label,
    .ps-customizer .gravure-option label {
        width: 45%;
    }

    .ps-customizer .bottomstep {
        width: 100%;
        right: 0;
        padding: 0 15px;
    }
}
