/* =========================================================
   TAGS SUR LES IMAGES DES PRODUITS
   ========================================================= */

.product-image {
    position: relative;
}

.product-type-tags {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.product-type-tag {
    display: inline-block;
  padding: 5px 10px;
  background: #fff;
  border-radius: 4px;
  line-height: 1.2;
  white-space: nowrap;
  font-family: Poppins;
  font-weight: 500;
  font-size: 11.5px;
  margin-top: 6px;
}


/* =========================================================
   FILTRES VIEWS
   ========================================================= */

/* Masquer le label "Type de produit" */
.form-item-field-type-de-produit-target-id > label {
    display: none !important;
}

/* Masquer le select original */
.form-item-field-type-de-produit-target-id select {
    display: none !important;
}

/* Masquer le bouton Apply */
.views-exposed-form .form-actions {
    display: none !important;
}


/* =========================================================
   CONTENEUR DES FILTRES
   ========================================================= */

.views-exposed-form {
    display: block !important;
    width: 100%;
    text-align: left !important;
}

.views-exposed-form .form-item-field-type-de-produit-target-id {
    display: block !important;

    width: 100%;

    margin-left: 0 !important;
    margin-right: 0 !important;

    text-align: left !important;
}

.product-type-filters {
    display: flex !important;

    flex-wrap: wrap;

    justify-content: flex-start !important;
    align-items: center;

    gap: 10px;

    width: 100%;

    margin: 2rem 0 25px 0 !important;
    padding: 0;
}


/* =========================================================
   FILTRES / BOUTONS
   ========================================================= */

.product-filter {
    display: inline-block;

    margin: 0 !important;
    padding: 8px 18px;

    border: 1px solid #ddd;
    border-radius: 20px;

    background: #fff;
    color: #333;

    cursor: pointer;

    font-size: 14px;
    line-height: 1.4;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}


/* Hover */
.product-filter:hover {
    border-color: #333;
}


/* Filtre sélectionné */
.product-filter.active {
    background: #333;
    color: #fff;
    border-color: #333;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 767px) {

    .product-type-filters {
        gap: 7px;
        margin-top: 1.5rem !important;
    }

    .product-filter {
        padding: 7px 14px;
        font-size: 13px;
    }

    .product-type-tag {
        padding: 4px 8px;
        font-size: 11px;
    }

}

.product-type-tag {
    display: inline-block;
    padding: 5px 10px;

    color: #fff;

    border-radius: 4px;

    font-size: 12px;
    line-height: 1.2;

    white-space: nowrap;
}

/* Panier de la semaine */
.product-type-tag--panier {
    background-color: #E9B949;
}

/* Produits à panacher */
.product-type-tag--panacher {
    background-color: #8E5AAD;
}

/* Fruits à coque */
.product-type-tag--fruits-a-coque {
    background-color: #6A994E;
}