.marketplace-block {
    max-width: 1400px;
    margin: 0 auto;
}

.marketplace-container {
    display: flex;
    gap: 2rem;
}

.marketplace-sidebar {
    width: 250px;
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.marketplace-main {
    flex: 1;
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-container {
    margin-bottom: 2rem;
}

.marketplace-search {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.marketplace-item-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.marketplace-item-header {
    display: flex;
    gap: 1rem;
    padding: 0.5rem 1rem;
}

.marketplace-item-image {
    width: 50%;
    height: auto;
    flex-shrink: 0;
    aspect-ratio: 1;
}

.marketplace-item-image img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 4px;
}

.marketplace-item-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.marketplace-item-excerpt {
    padding: 0.25rem 1rem;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

.marketplace-item-card a {
    margin-bottom: 1rem;
}

.marketplace-item-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary-blue);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s ease;
    margin: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.marketplace-item-link:hover {
    background: var(--secondary-blue);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Category styles */
.product-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    margin-bottom: 0.5rem;
}

.category-link {
    display: block;
    padding: 0.5rem 1rem;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.category-item.active .category-link {
    background: #0073aa;
    color: #fff;
}

.category-link:hover {
    background: #f0f0f0;
}

.category-item.active .category-link:hover {
    background: #005177;
}

/* Loading state */
.products-grid.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .marketplace-container {
        flex-direction: column;
    }

    .marketplace-sidebar {
        width: 100%;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }
} 