.catalog-section {
    padding-bottom: 4em;
}

.catalog-section .masonry-item {
    width: calc(33.3333% - 25px);
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease-in-out;
    padding: 10px;
    background: #f3f3f3;
}

.catalog-section .masonry-item:hover {
    transform: scale(1.03);
}

.catalog-section .masonry-item img {
    width: 100%;
    height: auto;
    display: block;
}

.catalog-section .item-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding-top: 10px;
}

.catalog-section .item-meta-column {
    display: flex;
    align-items: center;
    gap: 10px;
}

.catalog-section .item-title {
    font-family: "WorkSans-Medium", Sans-serif;
    font-size: 24px;
    margin: 0;
    margin-top: 10px;
}

.catalog-section .item-author,
.catalog-section .item-year {
    font-family: "WorkSans-Medium", Sans-serif;
    font-size: 14px;
    color: #000;
}

.catalog-section .item-author {
    text-decoration: underline;
    font-weight: 500;
}

.catalog-section .item-price {
    font-family: "WorkSans-Medium", Sans-serif;
    font-size: 20px;
    color: #008080;
}

.catalog-section .loading-spinner {
    text-align: center;
    padding: 20px 0;
}

.catalog-section .spinner-icon {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top: 4px solid #000;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.catalog-section .btn-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
}

.catalog-section .btn-wrapper button {
    cursor: pointer;
    padding: 14px 32px;
    border: unset;
    background: #000;
    color: #fff;
    font-size: 20px;
    font-family: "WorkSans-Medium", Sans-serif;
}

@media(max-width: 767px) {
    .catalog-section .masonry-item {
        width: calc(50% - 10px);
    }

    .catalog-section .item-title {
        font-size: 20px;
    }

    .catalog-section .item-meta {
        padding-top: 5px;
        flex-direction: column;
        gap: 0;
    }

    .catalog-section .item-meta-column:nth-child(1) {
        flex-direction: column;
        align-items: flex-start;
    }

    .catalog-section .item-price {
        font-size: 16px;
    }
    .catalog-section .btn-wrapper button {
        padding: 14px 28px;
        font-size: 16px;
    }
}