/**
 * Nutriforce Category Description Styles
 * Design minimal - Voir plus inline
 */

/* ========================================
   HEADER DE CATÉGORIE
   ======================================== */

.nf-category-header {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

/* Image de catégorie */
.nf-category-image-wrapper {
    flex-shrink: 0;
    margin: 0;
}

.nf-category-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 7px;
}

/* Contenu texte */
.nf-category-content {
    flex: 1;
    min-width: 0;
}

/* Titre */
.nf-category-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

/* ========================================
   DESCRIPTION COURTE - STYLE INLINE
   ======================================== */

.nf-short-description {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--ast-global-color-3, #64748b);
}

/* Checkbox cachée qui contrôle l'état */
.nf-see-more-checkbox {
    display: none !important;
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Texte visible par défaut (tronqué) */
.nf-short-description-visible {
    display: inline;
}

/* Texte caché par défaut */
.nf-short-description-hidden {
    display: none;
}

/* Quand checkbox cochée, afficher le texte caché */
.nf-see-more-checkbox:checked ~ .nf-short-description .nf-short-description-hidden {
    display: inline;
}

/* Bouton Voir plus - inline comme un lien */
.nf-see-more-label {
    color: var(--ast-global-color-0);
    cursor: pointer;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    outline: none;
}

.nf-see-more-label:hover {
    text-decoration: underline;
}

.nf-see-more-label:focus,
.nf-see-more-label:active {
    outline: none;
    background: none;
}

/* Texte du label */
.nf-see-more-label::before {
    content: 'Voir plus';
}

/* Cacher le label une fois déplié */
.nf-see-more-checkbox:checked ~ .nf-short-description .nf-see-more-label {
    display: none;
}

/* Cacher le label si pas de texte caché */
.nf-see-more-label.is-hidden {
    display: none;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    /* Cacher le fil d'Ariane et l'image sur mobile */
    .woocommerce-breadcrumb,
    .nf-category-image-wrapper {
        display: none;
    }

    .nf-category-header {
        text-align: center;
    }

    .nf-category-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .nf-category-image {
        width: 60px;
        height: 60px;
    }

    .nf-category-title {
        font-size: 1.125rem;
    }

    .nf-short-description {
        font-size: 0.875rem;
    }
}

/* ========================================
   MASQUER LE TITRE PAR DÉFAUT WOOCOMMERCE
   ======================================== */

.woocommerce-products-header__title.page-title {
    display: none;
}

/* ========================================
   DESCRIPTION LONGUE (EN BAS DE PAGE)
   ======================================== */

.woocommerce .term-description {
    margin-top: 3rem;
    padding: 1.5rem;
}

.woocommerce .term-description p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.woocommerce .term-description p:last-child {
    margin-bottom: 0;
}
