/* Hyperwave */
@font-face {
    font-family: 'Hyperwave';
    src: url('/modules/creativeelements/views/fonts/Hyperwave.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* My account */
.link-item {
    text-align: center;
}

.customer-link__link > .link-item > i {
    margin: 0 auto;
    font-size: 40px !important;
}

#wishlist-link > .link-item > i {
    margin: 0 auto;
    font-size: 40px !important;
}

#psgdpr-link > .link-item > i {
    margin: 0 auto;
    font-size: 40px !important;
}

/* ===== DESKTOP ===== */
.mp-mobile-menu-toggle{
    display:none;
}

/* ===== MOBILE ===== */
@media (max-width: 768px){

    /* bouton visible */
    .mp-mobile-menu-toggle{
        display:block;
        width:100%;
        padding:14px;
        font-size:16px;
        font-weight:600;
        background:#fff;
        border:1px solid #ddd;
        border-radius:10px;
        margin-bottom:10px;
    }

    /* sidebar devient dropdown */
    .ets_mp_content_left{
        width:100%;
        max-width:100%;
        flex:0 0 100%;
    }

    .mp-mobile-menu-wrapper{
        display:none;
        background:#fff;
        border-radius:14px;
        padding:8px;
        box-shadow:0 10px 25px rgba(0,0,0,.08);
    }

    .mp-mobile-menu-wrapper.open{
        display:block;
        animation:mpFade .25s ease;
    }

    /* items */
    .mp-seller-menu li{
        width:100%;
    }

    .mp-seller-menu li a{
        padding:14px;
        border-radius:12px;
    }

    .ets_mp_content_left .mp-mobile-menu-wrapper{
        display:none !important;
    }

    .ets_mp_content_left .mp-mobile-menu-wrapper.open{
        display:block !important;
    }
}

@keyframes mpFade{
    from{opacity:0;transform:translateY(-6px)}
    to{opacity:1;transform:translateY(0)}
}

/* Mobile marketplace table cleaner */
@media (max-width:768px){

    /* image */
    .table .column-image,
    .table .column-image + td{
        display:none !important;
    }

    /* statut */
    .table .column-active,
    .table .column-active + td{
        display:none !important;
    }

}

@media (max-width:768px){

    /* header */
    th.column-image,
    th.column-active{
        display:none !important;
    }

    /* cells */
    td.column-image,
    td.column-active{
        display:none !important;
    }

}


/* ===== Marketplace Form Redesign ===== */

#seller-form .form-group.row{
    display:block;
    margin-bottom:22px;
}

#seller-form label.form-control-label{
    display:block;
    width:100%;
    max-width:100%;
    font-weight:600;
    margin-bottom:6px;
    font-size:14px;
    color:#222;
}

#seller-form .col-md-9,
#seller-form .col-md-3{
    width:100%;
    max-width:100%;
    flex:0 0 100%;
    padding:0;
}

/* inputs */
#seller-form .form-control{
    height:46px;
    border-radius:10px;
    border:1px solid #dcdcdc;
    padding:10px 14px;
    transition:.2s;
    background:#fafafa;
}

#seller-form textarea.form-control{
    min-height:130px;
    resize:vertical;
}

/* focus */
#seller-form .form-control:focus{
    background:#fff;
    border-color:#4da3ff;
    box-shadow:0 0 0 3px rgba(77,163,255,.15);
}

/* upload */
#seller-form .custom-file-label{
    border-radius:10px;
    height:46px;
    display:flex;
    align-items:center;
    padding-left:14px;
}

/* helper text */
#seller-form .desc{
    font-size:12px;
    color:#777;
    margin-top:6px;
}

/* button */
#seller-form .btn-primary{
    border-radius:12px;
    height:50px;
    padding:0 28px;
    font-weight:600;
    letter-spacing:.2px;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
}

/* card panel */
.ets_mp_createpage .panel{
    border-radius:18px;
    padding:28px;
    box-shadow:0 10px 40px rgba(0,0,0,.05);
    border:none;
    background:#fff;
}

/* mobile spacing */
@media(max-width:768px){
    .ets_mp_createpage .panel{
        padding:18px;
    }
}



/* ===== RADIO SEGMENTED ===== */

.radio-toggle {
    display: flex;
    gap: 0;
    background: #1f1f1f;
    padding: 4px;
    border-radius: 40px;
    width: fit-content;
}

/* cache le vrai radio */
.radio-toggle input[type="radio"]{
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* chaque option */
.radio-toggle .radio{
    margin:0;
}

/* label = bouton */
.radio-toggle label{
    position: relative;
    display: block;
    padding: 10px 22px;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 600;
    color: #20e0a0;
    transition: all .25s ease;
    white-space: nowrap;
}

/* fond actif */
.radio-toggle label::before{
    content:"";
    position:absolute;
    inset:0;
    border-radius:40px;
    background:#20e0a0;
    opacity:0;
    transition:.25s ease;
    z-index:-1;
}

/* hover */
.radio-toggle label:hover{
    color:white;
}

/* état actif */
.radio-toggle input[type="radio"]:checked + span,
.radio-toggle input[type="radio"]:checked + label,
.radio-toggle label:has(input:checked){
    color:#1f1f1f;
}

.radio-toggle label:has(input:checked)::before{
    opacity:1;
}

/* animation smooth */
.radio-toggle label{
    z-index:0;
}


/* FORM PRODUIT */

/* ===== GLOBAL FORM ===== */
.mp-modern-form{
    max-width:900px;
    margin:auto;
    font-size:15px;
}

/* chaque ligne devient une carte */
.mp-modern-form .row.form-group{
    background:#fff;
    border-radius:14px;
    padding:18px 18px;
    margin-bottom:14px;
    border:1px solid #e8edf2;
    transition:.2s ease;
}

/* hover subtle */
.mp-modern-form .row.form-group:hover{
    border-color:#d7dee6;
}

/* STEP1 hidden */
.mp-hidden-step1{ display:none!important; }

/* label au dessus du champ */
.mp-modern-form .form-control-label{
    width:100%!important;
    max-width:none!important;
    flex:0 0 100%!important;
    margin-bottom:6px;
    font-weight:600;
    color:#1f2937;
}

/* champ prend toute la largeur */
.mp-modern-form .col-lg-9{
    flex:0 0 100%;
    max-width:100%;
}

/* champs texte */
.mp-modern-form input[type=text],
.mp-modern-form textarea,
.mp-modern-form select{
    border:1px solid #d9e1ea;
    border-radius:10px;
    padding:11px 14px;
    font-size:15px;
    background:#fbfdff;
    transition:.18s ease;
    width:100%;
}

/* focus premium */
.mp-modern-form input:focus,
.mp-modern-form textarea:focus,
.mp-modern-form select:focus{
    outline:none;
    border-color:#20e0a0;
    background:#fff;
    box-shadow:0 0 0 3px rgba(32,224,160,.15);
}

/* textarea confortable */
.mp-modern-form textarea{
    min-height:120px;
    resize:vertical;
}

.mp-modern-form .input-group{
    display:flex;
    align-items:center;
}

.mp-modern-form .input-group-text{
    background:#f1f5f9;
    border:1px solid #d9e1ea;
    border-left:0;
    padding:11px 14px;
    border-radius:0 10px 10px 0;
    font-weight:600;
}

.mp-modern-form .input-group input{
    border-radius:10px 0 0 10px;
}

.category-tree{
    max-height:260px;
    overflow:auto;
    padding:10px;
    border:1px solid #e5e7eb;
    border-radius:10px;
    background:#fbfbfb;
}

.mp-modern-form input[type=file]{
    border:2px dashed #dbe4ee;
    background:#f8fafc;
    padding:18px;
    border-radius:12px;
    cursor:pointer;
}

.mp-modern-form input[type=file]:hover{
    border-color:#20e0a0;
    background:#f0fffa;
}

.mp-modern-form h2{
    font-size:18px;
    margin:30px 0 12px;
    font-weight:700;
    color:#0f172a;
    padding-left:6px;
}


/* COMBINATION*/

/* masque uniquement le label "Déclinaisons" */
.ets_mp_show_variations > label {
    display:none;
}

/* ====== ATTRIBUTES (DECLINAISONS) : UI moderne ====== */

/* le bloc groupe (Taille, Couleur...) */
.attribute-group{
  background:#fff;
  border:1px solid #e8edf2;
  border-radius:14px;
  padding:12px;
  margin-bottom:14px;
}

/* header accordéon */
.attribute-group-name{
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-weight:700;
  color:#0f172a;
  text-decoration:none;
  padding:8px 10px;
  border-radius:10px;
}

/* chevron (si tu veux un indicateur) */
.attribute-group-name::after{
  content:"▾";
  font-size:14px;
  opacity:.6;
  transition:transform .2s ease;
}
.attribute-group-name[aria-expanded="true"]::after{
  transform:rotate(180deg);
}

/* container options */
.attributes{
  padding:10px 6px 4px;
}

/* grille responsive de chips */
.attributes-overflow{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:10px;
}
@media (min-width: 768px){
  .attributes-overflow{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

/* chaque option */
.attribute{
  display:flex;
  align-items:center;
}

/* on cache la checkbox native + ton décor actuel */
.attribute .ets_input_group{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

/* le label devient une chip */
.attribute-label{
  width:100%;
  margin:0;
  cursor:pointer;
}

.attribute-label .pretty-checkbox{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:42px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid #d9e1ea;
  background:#ffffff;
  font-weight:700;
  color:#111827;
  transition:.18s ease;
  user-select:none;
}

/* hover */
.attribute-label:hover .pretty-checkbox{
  border-color:#cbd5e1;
  transform:translateY(-1px);
}

/* état coché : input + label */
.attribute input.js-attribute-checkbox:checked + .ets_input_check + label .pretty-checkbox{
  border-color:#20e0a0;
  box-shadow:0 0 0 3px rgba(32,224,160,.18);
}

/* accessibilité clavier */
.attribute input.js-attribute-checkbox:focus-visible + .ets_input_check + label .pretty-checkbox{
  outline:none;
  box-shadow:0 0 0 3px rgba(59,130,246,.18);
  border-color:#60a5fa;
}

/* état sélectionné */
.attribute:has(input:checked) .pretty-checkbox{
    border-color:#20e0a0;
    background:#eafff7;
    color:#0f172a;
    font-weight:600;
    box-shadow:0 0 0 3px rgba(32,224,160,.15);
}