.mafate-livres-category {
    margin-bottom: 2rem;
}

.mafate-livres-category h2 {
    margin-bottom: 1rem;
}

.mafate-livres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.mafate-livre {
    border: 1px solid #ddd;
    padding: 1rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.mafate-livre-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.mafate-livre-title {
    font-size: 1rem;
    margin: 0 0 0.5rem;
}

.mafate-livre p {
    margin: 0;
}

.mafate-livre-collection {
    font-size: 0.9rem;
    font-style: italic;
    color: #555;
}

.mafate-livre-date {
    font-size: 0.8rem;
    color: #777;
}

.mafate-livre-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0073aa;
}

#mafate-livre-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    z-index: 1000;
}

#mafate-livre-modal.open {
    display: flex;
}

.mafate-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
    color: #fff;
}

.mafate-modal-content img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

.mafate-modal-close {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 2rem;
    cursor: pointer;
    color: #fff;
}
