/**
 * FirstTech_EmptyCategory — état "catégorie vide" (design 1a).
 * Couleurs alignées sur First Tech France : bleu #2d31d6, encre #151a2e.
 * Marges logiques (margin-inline) => compatible RTL sans refonte.
 */

/* Masque le message natif Magento UNIQUEMENT sur les pages catégorie.
   (La recherche garde son propre message.) */
.catalog-category-view .message.info.empty {
    display: none !important;
}

.ftf-empty {
    --ftf-blue: #2d31d6;
    --ftf-ink: #151a2e;
    --ftf-muted: #5b6478;
    --ftf-line: #e5e8ee;
    font-family: inherit;
    max-width: 1180px;
    margin-inline: auto;
    margin-block: 8px 48px;
}

/* --- Carte principale --- */
.ftf-empty__card {
    display: flex;
    align-items: center;
    gap: 40px;
    background: #fff;
    border: 1px solid var(--ftf-line);
    border-radius: 18px;
    padding: 48px 44px;
}

.ftf-empty__icon {
    position: relative;
    flex-shrink: 0;
    width: 104px;
    height: 104px;
    border-radius: 22px;
    background: linear-gradient(135deg, #eef0ff, #dfe3ff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ftf-blue);
}

.ftf-empty__badge {
    position: absolute;
    top: -10px;
    inset-inline-end: -10px;
    background: var(--ftf-blue);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    padding: 5px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.ftf-empty__title {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    color: var(--ftf-ink);
    line-height: 1.2;
}

.ftf-empty__text {
    margin: 12px 0 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--ftf-muted);
    max-width: 620px;
}

.ftf-empty__promise {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0 0;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--ftf-ink);
}

.ftf-empty__promise-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #1f9d55;
    box-shadow: 0 0 0 4px rgba(31, 157, 85, .15);
}

/* --- Formulaire email --- */
.ftf-empty__form {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    max-width: 520px;
}

.ftf-empty__input {
    flex: 1;
    height: 52px;
    border: 1px solid var(--ftf-line);
    background: #f7f8fb;
    border-radius: 12px;
    padding-inline: 18px;
    font-size: 15px;
    color: var(--ftf-ink);
}

.ftf-empty__input:focus {
    outline: none;
    border-color: var(--ftf-blue);
    background: #fff;
}

.ftf-empty__btn {
    height: 52px;
    padding-inline: 26px;
    border: none;
    border-radius: 12px;
    background: var(--ftf-blue);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    white-space: nowrap;
    transition: filter .15s ease;
}

.ftf-empty__btn:hover {
    filter: brightness(1.08);
}

/* --- Recommandations --- */
.ftf-empty__reco {
    margin-top: 44px;
}

.ftf-empty__reco-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 18px;
}

.ftf-empty__reco-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--ftf-ink);
}

.ftf-empty__reco-link {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--ftf-blue);
    text-decoration: none;
}

.ftf-empty__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.ftf-empty__product {
    display: block;
    background: #fff;
    border: 1px solid #e8ebf0;
    border-radius: 14px;
    padding: 16px;
    text-decoration: none;
    transition: box-shadow .15s ease, transform .15s ease;
}

.ftf-empty__product:hover {
    box-shadow: 0 16px 40px -22px rgba(20, 24, 46, .35);
    transform: translateY(-2px);
}

.ftf-empty__product-img {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    border-radius: 10px;
    background: #f5f6f9;
    overflow: hidden;
}

.ftf-empty__product-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ftf-empty__product-name {
    display: block;
    margin-top: 14px;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--ftf-ink);
}

.ftf-empty__product-price {
    display: block;
    margin-top: 6px;
    font-size: 16px;
    font-weight: 800;
    color: var(--ftf-blue);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .ftf-empty__card {
        flex-direction: column;
        text-align: center;
        gap: 24px;
        padding: 32px 22px;
    }
    .ftf-empty__form {
        flex-direction: column;
    }
    .ftf-empty__btn {
        width: 100%;
    }
    .ftf-empty__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
