/**
 * WooCommerce Category Bottom Description - Frontend Styles
 * Version 2.0.0
 */

/* Container wrapper */
.wcbd-bottom-description-wrapper {
    margin-top: 40px;
    margin-bottom: 40px;
}

/* Container principal */
.wcbd-bottom-description {
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 8px;
    clear: both;
}

.wcbd-bottom-description > *:first-child {
    margin-top: 0;
}

.wcbd-bottom-description > *:last-child {
    margin-bottom: 0;
}

/* Système Read More */
.wcbd-readmore-content {
    position: relative;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.wcbd-readmore-content::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 90px;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(248, 249, 250, 0), rgba(248, 249, 250, 1));
    transition: opacity 0.25s ease;
}

.wcbd-readmore-content.is-open {
    max-height: none !important;
}

.wcbd-readmore-content.is-open::after {
    opacity: 0;
    pointer-events: none;
}

/* Bouton chevron */
.wcbd-readmore-btn {
    margin: 14px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid currentColor;
    background: transparent;
    cursor: pointer;
    color: #555;
    transition: all 0.2s ease;
}

.wcbd-readmore-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

.wcbd-readmore-btn:focus {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

.wcbd-readmore-icon {
    transition: transform 0.25s ease;
}

.wcbd-readmore-btn[aria-expanded="true"] .wcbd-readmore-icon {
    transform: rotate(180deg);
}

.wcbd-readmore-btn.is-hidden {
    display: none !important;
}

/* Typographie */
.wcbd-bottom-description h1,
.wcbd-bottom-description h2,
.wcbd-bottom-description h3,
.wcbd-bottom-description h4,
.wcbd-bottom-description h5,
.wcbd-bottom-description h6 {
    color: #1a1a1a;
    margin-bottom: 15px;
}

.wcbd-bottom-description h2 {
    font-size: 1.5em;
}

.wcbd-bottom-description h3 {
    font-size: 1.25em;
}

.wcbd-bottom-description p {
    line-height: 1.7;
    margin-bottom: 1em;
    color: #333;
}

.wcbd-bottom-description a {
    color: #0066cc;
    text-decoration: underline;
}

.wcbd-bottom-description a:hover {
    color: #004499;
}

.wcbd-bottom-description ul,
.wcbd-bottom-description ol {
    margin: 1em 0;
    padding-left: 2em;
}

.wcbd-bottom-description li {
    margin-bottom: 0.5em;
    line-height: 1.6;
}

.wcbd-bottom-description img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .wcbd-bottom-description-wrapper {
        margin-top: 30px;
        margin-bottom: 30px;
    }
    
    .wcbd-bottom-description {
        padding: 20px;
    }

    .wcbd-readmore-content::after {
        height: 60px;
    }

    .wcbd-readmore-btn {
        width: 40px;
        height: 40px;
    }

    .wcbd-readmore-icon {
        width: 18px;
        height: 18px;
    }
}
