/* =========================================================
   Bloc principal "livraison gratuite"
   ========================================================= */
.lh-fsp {
    background: #fff;
    border: 1px solid #EADFD2;
    padding: 12px;
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(156,107,47,.06);
    margin: 10px 0 20px 0;
}

.lh-fsp-text {
    color: #1F2328;
    font-weight: 600;
    margin-bottom: 6px;
}

.lh-fsp-bar {
    width: 100%;
    height: 10px;
    border-radius: 16px;
    background: #EADFD2;
    overflow: hidden;
}

.lh-fsp-bar span {
    display: block;
    height: 100%;
    background: #9C6B2F;
    transition: width .6s ease;
}

/* Centrage / largeur max sur la page panier */
.woocommerce-cart .lh-fsp {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================================
   Suggestions produits
   ========================================================= */
.lh-fsp-suggestions {
    margin-top: 8px;
}

.lh-fsp-suggestions-title {
    font-size: 13px;
    color: #5F6670;
    margin-bottom: 4px;
}

/* Liste verticale */
.lh-fsp-suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Une suggestion = image + texte + lien "Ajouter" */
.lh-fsp-suggestion {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 4px 0;
}

.lh-fsp-suggestion-main {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex: 1;
}

/* Miniature produit */
.lh-fsp-suggestion-thumb {
    flex: 0 0 auto;
}

.lh-fsp-suggestion-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

/* Zone texte (titre + prix) */
.lh-fsp-suggestion-text {
    display: flex;
    flex-direction: column;
    max-width: 100%;
}

/* Titre produit : 2 lignes max partout (desktop + mobile) */
.lh-fsp-suggestion-name {
    font-size: 13px;
    line-height: 1.35;
    color: #1F2328;
    display: -webkit-box;
    -webkit-line-clamp: 2;          /* 👉 2 lignes max */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    max-height: 2.7em;              /* 2 lignes * line-height */
    margin-bottom: 2px;
}

/* Prix produit */
.lh-fsp-suggestion-price {
    font-size: 13px;
    color: #9C6B2F;
}

/* Lien "Ajouter" */
.lh-fsp-suggestion-add {
    font-size: 12px;
    white-space: nowrap;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #9C6B2F;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 500;
}

/* Hover desktop */
@media (hover: hover) {
    .lh-fsp-suggestion-add:hover {
        color: #795324;
    }
}

/* =========================================================
   Desktop (≥ 992px)
   ========================================================= */
@media (min-width: 992px) {

    .lh-fsp-suggestion {
        align-items: center;
        padding: 4px 0;
    }

    /* Layout un peu plus structuré */
    .lh-fsp-suggestion-main {
        display: grid;
        grid-template-columns: 48px 1fr;
        grid-column-gap: 10px;
        align-items: center;
    }

    .lh-fsp-suggestion-img {
        width: 46px;
        height: 46px;
    }

    .lh-fsp-suggestion-add {
        align-self: center;
        margin-left: 10px;
    }
}

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

    /* Bloc global un peu plus compact sur fiche produit */
    .single-product .summary .lh-fsp {
        margin-top: 12px;
        margin-bottom: 16px;
        padding: 10px 12px;
        border-radius: 14px;
        box-shadow: 0 4px 16px rgba(156,107,47,.08);
    }

    .single-product .summary .lh-fsp-text {
        font-size: 14px;
        line-height: 1.45;
        margin-bottom: 8px;
    }

    .single-product .summary .lh-fsp-bar {
        height: 8px;
        border-radius: 999px;
    }

    /* Suggestions : alignement pour multi-lignes */
    .lh-fsp-suggestion {
        align-items: flex-start;
    }

    .lh-fsp-suggestion-main {
        align-items: flex-start;
    }

    .lh-fsp-suggestion-img {
        width: 36px;
        height: 36px;
    }

    .lh-fsp-suggestions-title {
        font-size: 12px;
    }

    .lh-fsp-suggestion-name {
        font-size: 13px; /* clamp déjà défini plus haut */
    }

    .lh-fsp-suggestion-price {
        font-size: 12px;
    }

    .lh-fsp-suggestion-add {
        font-size: 11px;
        margin-top: 2px;
    }
}

/* =========================================================
   Très petits écrans (< 400px)
   ========================================================= */
@media (max-width: 400px) {

    .single-product .summary .lh-fsp {
        padding: 9px 10px;
    }

    .single-product .summary .lh-fsp-text {
        font-size: 13px;
    }

    .lh-fsp-suggestion-name {
        font-size: 12px;
    }

    .lh-fsp-suggestion-price {
        font-size: 11px;
    }
}
