/* ADD font family material icons */
@font-face {
    font-family: 'Material Icons';
    font-style: normal;
    font-weight: 400;
    src: url(https://fonts.gstatic.com/s/materialicons/v48/flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2) format('woff2');
}

#container-btn-createkit {
    gap: 20px;
}

#container-btn-createkit .btn {
    flex: 1;
}

#displayveproductkit + #ve-createkit-btn {
    max-width: 100%;
}

#ve-createkit-btn {
    background-color: #B95C4B;
    padding: 10px;
    color: #fff;
    border: none;
}

#ve-createkit-btn:hover {
    background-color: #A24A3D;
}

.productkit-title {
    color: #000;
    background-color: #F2F2F2;
    margin-inline: 4rem;
    padding: .625rem;
    border-radius: 5px;
    cursor: pointer;
}

.productkit-title span:last-child {
    font-size: 1.5rem;
    font-weight: 700;
}

.productkit-arrow::before {
    content: 'keyboard_arrow_down';
    font-family: 'Material Icons';
    font-size: 2rem;
    color: #000;
}

.productkit-arrow.open::before {
    content: 'keyboard_arrow_up';
}

#productkit-packaging, #productkit-products {
    padding-bottom: 2rem;
}

#modal-createkit #products-container {
    gap: 30px;
    max-height: 520px;
    overflow-y: auto;
}

#modal-createkit #accessories-container, #modal-createkit #packaging-container {
    gap: 30px;
}

.ve-createkit-product, .ve-createkit-packaging {
    width: 200px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    max-height: fit-content;
}

.ve-imgkit-container {
    width: 125px;
    cursor: pointer;
    margin: 0 auto;
}

.ve-imgkit-container::after {
    width: 36px;
    height: 36px;
    content: 'add';
    position: absolute;
    display: block;
    background: rgb(68, 170, 255);
    z-index: 2;
    border-radius: 100%;
    line-height: 30px;
    font-size: 30px;
    font-weight: bold;
    color: #fff;
    right: 0.5em;
    bottom: 0.5em;
    border: 3px solid #fff;
    box-shadow: 0 0px 3px 0 rgba(0, 0, 0, 0.5);
    cursor: pointer;
    font-family: 'Material Icons';
}

.ve-createkit-product-combination {
    background: none;
    cursor: pointer;
}

.ve-createkit-product-checkbox:is(:checked) + .ve-imgkit-container::after {
    content: 'done';
    background-color: #7d9;
}

#modal-createkit .modal-dialog {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.accordeon-wrapper {
    display: none;
    margin-inline: 4rem;
}

.accordeon-wrapper > div {
    padding-top: 3rem;
}

.accordeon-container {
    display: flex;
}

@media (max-width: 900px) {
    .accordeon-container {
        display: block;
    }
}

#modal-createkit .modal-content {
    height: 100vh;
}

#modal-createkit .modal-body {
    overflow-y: auto;
    padding-top: 2rem;
}

.ve-createkit-product-combination {
    width: 100%;
}

#modal-createkit hr {
    border: solid 3px blue;
    width: 80%;
}

#modal-createkit {
    overflow-y: hidden;
}

/* cercle fond bleu, chiffre (span) blanc */
.number-circle {
    display: inline-block;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    background: #fff;
    color: #000;
    font-weight: 600;
    text-align: center;
    font-size: 20px;
    line-height: 36px;
    margin: 0 auto;
}

.productkit-qty-container input {
    padding: .4rem;
    width: 70px;
    text-align: center;
    font-weight: 600;
}

.productkit-qty-container span
{
    padding-right: 1rem;
    font-size: 1.125rem;
}

.ve-createkit-product-name {
    min-height: 80px;
    display: flex;
    align-items: center;
}

/* MODAL */
@media (max-width: 575.98px) {
    #modal-createkit .modal-dialog {
        margin: 0 auto;
    }
}

/* MODAL FOOTER */
#modal-createkit .modal-footer {
    flex-direction: column-reverse;
    align-items: end;
}

#modal-createkit .modal-footer > div {
    margin-right: .5rem;
}

#modal-createkit .modal-footer > div:first-child {
    gap: 10px;
}

#productkit-finalprice-container {
    font-size: 1.25rem;
}

#frais-techniques, #frais-manutention {
    font-size: .925rem;
    display: none;
    font-style: italic;
    margin-bottom: .5rem;
}

.customization-modal .product-customization-line p {
    word-break: keep-all;
}

.customization-modal .show-customs .d-flex {
    gap: 10px;
}

.customization-modal .show-customs .d-flex div:first-child {
    width: 80%;
}
.customization-modal .show-customs .d-flex div:last-child {
    width: 15%;
}

@media (max-width: 580px) {
    .customization-modal .modal-content .modal-body .product-customization-line .label {
        text-align: center;
    }

    .productkit-title {
        margin-inline: .625rem
    }

    .productkit-title span:last-child {
        font-size: 1.25rem;
    }

    .number-circle {
        line-height: 30px;
        width: 30px;
        height: 30px;
        font-size: 20px;
    }
}


@media (max-width: 441px) {
    .productkit-qty-container {
        text-align: center;
    }
    
    .productkit-qty-container span {
        padding-right: 0;
    }
}

/* FILTRES MOBILES */

#modal-createkit .productkit-filter {
    display: none;
}

@media (max-width: 900px) {
    #modal-createkit .productkit-filter {
        display: flex;
    }
}

#modal-createkit .dropdown {
    position: relative;
    font-size: 14px;
    color: #333;
    min-width: 200px;
    z-index: 10;
}

#modal-createkit .dropdown .dropdown-list {
    padding: 12px;
    background: #fff;
    position: absolute;
    left: 0;
    box-shadow: 0 1px 2px 1px rgba(0, 0, 0, 0.15);
    transform-origin: 50% 0;
    transform: scale(1, 0);
    transition: transform 0.15s ease-in-out 0.15s;
    max-height: 66vh;
    overflow-y: scroll;
    min-width: 200px;
    width: 100%;
}

#modal-createkit .dropdown .dropdown-option {
    display: flex;
    padding: 8px 12px;
    opacity: 0;
    transition: opacity 0.15s ease-in-out;
    cursor: pointer;
    width: fit-content;
}

#modal-createkit .dropdown .dropdown-label {
    display: block;
    height: fit-content;
    width: fit-content;
    min-width: 200px;
    max-width: 350px;
    background: #fff;
    border: 1px solid #ccc;
    padding: 6px 12px;
    line-height: 1.5;
    cursor: pointer;
}

#modal-createkit .dropdown .dropdown-label:before {
    content: "▼";
    float: right;
}

#modal-createkit .dropdown.on .dropdown-list {
    transform: scale(1, 1);
    transition-delay: 0s;
}

#modal-createkit .dropdown.on .dropdown-list .dropdown-option {
    opacity: 1;
    transition-delay: 0.2s;
}

#modal-createkit .dropdown.on .dropdown-label:before {
    content: "▲";
}

#modal-createkit .dropdown [type=checkbox] {
    position: relative;
    top: -1px;
    margin-right: 4px;
    cursor: pointer;
}

/* Bouton de réinitialisation */
.filter-reset-wrapper {
  padding: 0 20px 15px;
  margin-bottom: 10px;
}

.btn-reset-filters {
  width: 100%;
  padding: 10px 15px;
  background-color: #dc3545;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
}

.btn-reset-filters:hover {
  background-color: #c82333;
  box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
  transform: translateY(-1px);
}

.btn-reset-filters:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
}

.btn-reset-filters.disabled {
  background-color: #6c757d;
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}

.btn-reset-filters.disabled:hover {
  background-color: #6c757d;
  transform: none;
  box-shadow: none;
}

.reset-icon {
  font-size: 16px;
  font-weight: bold;
}

/* FILTRES DESKTOP */

.productkit-content {
    gap: 20px;
    margin-top: 20px;
}

.productkit-sidebar {
    background-color: #f5f5f5;
    border-radius: 8px;
    width: 250px;
    padding: 20px 0;
    max-height: fit-content;
}

@media (max-width: 900px) {
  .productkit-sidebar {
    display: none;
  }
}

.sidebar-title {
  padding: 0 20px 15px;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 10px;
}

.categories-list {
  padding: 0 10px;
}

.category-item {
  margin-bottom: 5px;
}

.category-header {
  padding: 12px 15px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  color: #555;
}

.category-header:hover {
  background-color: #e8e8e8;
}

.category-header.active {
  background-color: #fff;
  border: 2px solid #000;
  color: #000;
}

.category-header.has-subcategories.open {
  background-color: #fff;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.category-arrow {
  font-size: 20px;
  transition: transform 0.3s ease;
  font-weight: bold;
}

.category-header.open .category-arrow {
  transform: rotate(90deg);
}

.subcategories-list {
  display: none;
  background-color: #fff;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  padding: 5px 0;
  margin-top: -6px;
}

.subcategories-list.show {
  display: block;
}

.subcategory-item {
  padding: 10px 15px 10px 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #666;
  font-size: 14px;
}

.subcategory-item:hover {
  background-color: #f9f9f9;
  color: #000;
}

.subcategory-item.active {
  border: 2px solid #000;
  border-radius: 6px;
  margin: 2px 10px;
  padding: 8px 13px 8px 28px;
  color: #000;
  font-weight: 500;
}

#products-container {
  flex: 1;
  gap: 20px;
}

/* Affichage du kit */
#displayveproductkit {
    border: 1px solid rgba(160,160,160,0.25);
    margin: 1rem 0;
    padding: 1rem;
}

#displayveproductkit .kit-product-container:last-child {
    border: none;
    padding-bottom: 0;
}

#displayveproductkit .kit-product-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    border-bottom: 1px solid rgba(160,160,160,0.25);
    padding: .5rem 0;
}

#displayveproductkit .kit-product-container .kit-product-name {
    box-flex: 0;
    -moz-flex: 0 0 50%;
    -ms-flex: 0 0 50%;
    flex: 0 0 50%;
    flex-wrap: wrap;
    align-content: center;
}

#displayveproductkit .kit-product-container .kit-product-name span {
    font-weight: 700;
    font-size: .875rem;
}

#displayveproductkit .kit-product-container .kit-product-thumb {
    max-width: 70px;
}

#displayveproductkit .kit-product-container .kit-product-name,#displayveproductkit .kit-product-container .kit-product-price,#displayveproductkit .kit-product-container .kit-product-quantity {
    display: -webkit-box;
    display: -moz-box;
    display: box;
    display: -moz-flex;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
}

/* Loader */
#loading-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); 
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
  
.loader {
    border: 8px solid rgba(255, 255, 255, 0.3);
    border-top: 8px solid #fff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
  